@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* Terminal theme. Always dark: it's the look, not a preference. */
:root {
  color-scheme: dark;
  --bg: #0a0d0b;
  --panel: #101512;
  --panel-2: #141b17;
  --ink: #d5e0d8;
  --muted: #8a9a8f; /* 6.5:1 on --bg */
  --line: #233029;
  --green: #3ddc84; /* 10:1 on --bg; --bg text on it passes too */
  --green-dim: #1b3a29;
  --amber: #ffb454;
  --red: #ff6b6b;
  --cyan: #5cc8e8;
  --radius: 6px;
  --gutter: 16px;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Mono for titles and accents: logo, nav, headings, labels, tags, numbers, buttons, code. */
.logo,
.site-nav,
.site-footer nav,
h1,
h2,
h3,
.eyebrow,
.tag,
.step-num,
.price,
.cta-sub,
.toc strong,
.term,
.term-bar,
.term .caption,
.checks li::before,
.cta-steps li::before,
.email-line .addr,
.field input,
.big-numbers strong,
.fixes strong,
table.lines td.num,
table.lines th,
table.lines tr.total td,
table.data th,
table.data td.num,
table.data tr.total td {
  font-family: var(--mono);
}

/* faint scanline grid behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 220, 132, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 220, 132, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: -1;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

::selection {
  background: var(--green);
  color: var(--bg);
}

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

.wrap {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  width: min(740px, 100%);
}

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

.green { color: var(--green); }
.amber { color: var(--amber); }
.red { color: var(--red); }
.cyan { color: var(--cyan); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 13, 11, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: 60px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.logo .prompt {
  color: var(--green);
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--green);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  font-size: 14px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a::before {
  content: "./";
  color: var(--line);
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--ink);
}

.site-nav a.nav-cta {
  color: var(--bg);
  background: var(--green);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius);
}

.site-nav a.nav-cta::before {
  content: none;
}

.site-nav a.nav-cta:hover {
  background: #fff;
  color: var(--bg);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

/* ---------- Type ---------- */
h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: #f1f7f3;
  text-wrap: balance;
}

h1 {
  font-size: clamp(28px, 5.4vw, 48px);
  font-weight: 800;
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(20px, 3vw, 26px);
  margin: 72px 0 18px;
}

h2::before {
  content: "## ";
  color: var(--green);
}

h3 {
  font-size: 16px;
  margin: 28px 0 8px;
}

.lede {
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 660px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "// ";
  color: var(--green);
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--amber);
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 0 5px;
  border-radius: 4px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 16px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.hero h1 .hl {
  color: var(--green);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 28px;
}

.cta-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--green);
  cursor: pointer;
  line-height: 1.3;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.4), 0 6px 24px rgba(61, 220, 132, 0.18);
}

.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--bg);
}

.btn-big {
  font-size: 17px;
  padding: 16px 26px;
}

.btn-ghost {
  background: transparent;
  color: var(--green);
}

.btn-ghost:hover {
  background: var(--green-dim);
  color: var(--green);
}

/* ---------- Terminal window ---------- */
.term {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  font-size: 13px;
  line-height: 1.75;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.term-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #33403a;
}

.term-bar span {
  margin-left: 8px;
}

.term pre {
  margin: 0;
  padding: 16px 18px 18px;
  font-family: var(--mono);
  white-space: pre;
  overflow-x: auto;
}

.term .caption {
  border-top: 1px solid var(--line);
  padding: 8px 18px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--green);
  margin-bottom: 8px;
}

.step-num {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 6px;
}

.price {
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
  margin: 4px 0 10px;
}

.checks {
  padding-left: 0;
  list-style: none;
}

.checks li {
  padding-left: 22px;
  position: relative;
  margin: 6px 0;
}

.checks li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.callout {
  background: var(--panel);
  border: 1px solid var(--green-dim);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 22px;
  margin: 28px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Big final CTA ---------- */
.cta-box {
  background: var(--panel);
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 0 0 4px var(--green-dim);
}

.cta-box h2 {
  margin-top: 0;
}

.cta-steps {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  counter-reset: s;
}

.cta-steps li {
  counter-increment: s;
  padding-left: 34px;
  position: relative;
  margin: 8px 0;
}

.cta-steps li::before {
  content: "0" counter(s);
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.email-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.email-line .addr {
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px dashed var(--line);
  padding: 11px 14px;
  border-radius: var(--radius);
}

.copy-btn {
  font-family: var(--mono);
  font-size: 13px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--ink);
  border-color: var(--muted);
}

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}

@media (min-width: 900px) {
  .calc {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
  }

  .calc-results {
    position: sticky;
    top: 76px;
  }
}

.field {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 4px 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.field:last-of-type {
  border-bottom: 0;
}

.field label {
  font-weight: 600;
  font-size: 15px;
}

.field small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.field input {
  width: 100%;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--green);
  text-align: right;
}

.field input::placeholder {
  color: #4a5a50;
}

.field input:focus {
  outline: 2px solid var(--green);
  outline-offset: 0;
  border-color: transparent;
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.calc-actions .btn {
  padding: 8px 14px;
  font-size: 13px;
}

.big-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.big-numbers div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.big-numbers span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.big-numbers strong {
  font-size: 24px;
  letter-spacing: -1px;
  color: var(--amber);
}

.big-numbers .save {
  grid-column: 1 / -1;
  border-color: var(--green-dim);
}

.big-numbers .save strong {
  color: var(--green);
}

table.lines {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.lines th,
table.lines td {
  padding: 7px 4px;
  border-bottom: 1px dashed var(--line);
  text-align: left;
}

table.lines th {
  color: var(--muted);
  font-weight: 400;
}

table.lines td.num,
table.lines th.num {
  text-align: right;
}

table.lines tr.total td {
  font-weight: 700;
  color: var(--amber);
  border-bottom: 0;
}

.fixes {
  padding-left: 22px;
  font-size: 14px;
}

.fixes li {
  margin: 12px 0;
}

.fixes li::marker {
  color: var(--green);
}

.fixes strong {
  display: block;
  color: #f1f7f3;
}

.note {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Article ---------- */
.article li {
  margin: 6px 0;
}

.article ul {
  padding-left: 20px;
}

.article ul li::marker {
  content: "- ";
  color: var(--green);
}

.toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin: 24px 0;
  font-size: 14px;
}

.toc strong {
  color: var(--muted);
  font-weight: 400;
}

.toc ol {
  margin: 6px 0 0;
  padding-left: 22px;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .field {
    grid-template-columns: 1fr 112px;
  }

  .site-nav {
    gap: 6px 14px;
    font-size: 13px;
  }

  .term {
    font-size: 11px;
  }

  .term pre {
    padding: 12px;
  }
}

/* ---------- Article tables & extras ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table.data {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.55;
}

table.data th,
table.data td {
  padding: 9px 12px;
  border-bottom: 1px dashed var(--line);
  text-align: left;
  vertical-align: top;
}

table.data th {
  background: var(--panel);
  color: var(--muted);
  font-weight: 400;
  font-size: 12.5px;
}

table.data td.num,
table.data th.num {
  text-align: right;
  white-space: nowrap;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data tr.total td {
  font-weight: 700;
  color: var(--amber);
}

table.data td.hi {
  color: var(--green);
  font-weight: 700;
}

.table-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 0;
}

.updated {
  font-size: 13px;
  color: var(--muted);
}

.assume {
  font-size: 15.5px;
}

.verdict {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 14px;
  margin: 18px 0;
}

.sources ol {
  font-size: 14px;
  padding-left: 24px;
}

.sources li {
  margin: 5px 0;
  overflow-wrap: anywhere;
}

a.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.card:hover {
  border-color: var(--green);
}

a.card:hover h3 {
  color: var(--green);
}
