/* ============================================================================
   cx::pm — product page
   Light, ink on paper, one accent. Single stylesheet, no build.
   ========================================================================== */

@font-face {
  font-family: "Alfa Slab One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/alfa-slab-one-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-variable.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --wash: #F5F4F0;
  --line: #E2E0D9;
  --muted: #65635D;
  --accent: #FF4F1A;
  --code-bg: #121211;
  --code-text: #ECEAE3;
  --code-dim: #8F8D86;

  --font-display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 8.3333vw, 120px);
  --radius: 8px;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

a { color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  box-sizing: content-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; outline-color: var(--accent); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2B2A28; border-color: #2B2A28; }
.btn-secondary { background: var(--paper); color: var(--ink); }
.btn-secondary:hover { background: var(--wash); }
.btn-inverse { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-inverse:hover { background: var(--wash); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px 48px;
  min-height: 80px;
}
.brand { flex: none; display: block; }
.brand img { width: 98px; height: auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 33px;
  font-size: 15px;
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  padding: 6px 0;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.header-cta {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

/* ------------------------------------------------------------------ hero */

.hero { padding: 96px 0 104px; }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 556px);
  gap: 48px 64px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(38px, 4.45vw, 64px);
  line-height: 1.09;
}
.hero .lead {
  margin-top: 32px;
  max-width: 530px;
  font-size: 19px;
  line-height: 31px;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-note {
  margin-top: 28px;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ code */

.code {
  min-width: 0;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 12px;
  padding: 20px 24px 24px;
}
.code-title {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 20px;
  color: var(--code-dim);
  margin-bottom: 10px;
}
.code pre {
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 24px;
  tab-size: 4;
  scrollbar-width: thin;
  scrollbar-color: #3A3936 transparent;
}
.code pre:focus-visible { outline-color: var(--accent); }
.code .p { color: var(--accent); }
.code .c { color: var(--code-dim); }

/* ----------------------------------------------------------------- stats */

.stats { background: var(--wash); padding: 44px 0 40px; }
.stats dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
}
.stat { display: flex; flex-direction: column; }
.stat dt {
  order: 2;
  margin-top: 6px;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}
.stat dd {
  order: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.02em;
}

/* -------------------------------------------------------------- sections */

.section { padding: 96px 0 104px; }
.band { background: var(--wash); }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section h2 {
  margin-top: 14px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.2;
}
.section-lead {
  margin-top: 18px;
  max-width: 740px;
  font-size: 18px;
  line-height: 30px;
  color: var(--muted);
}

/* ----------------------------------------------------------------- brief */

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 40px;
  margin-top: 56px;
}
.brief-item {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}
.brief-item h3 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.brief-item p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 24px;
  color: var(--muted);
}

/* ----------------------------------------------------------- walkthrough */

.walkthrough h2 { max-width: 700px; }

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 432px) minmax(0, 1fr);
  gap: 32px 72px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { padding-bottom: 0; }
.step-number {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.step h3 {
  margin-top: 16px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 26px;
  color: var(--muted);
}

/* -------------------------------------------------------------- commands */

.commands {
  width: 100%;
  margin-top: 44px;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  text-align: left;
}
.commands th,
.commands td {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 24px;
}
.commands th {
  width: 34.3%;
  padding-right: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  -webkit-text-stroke: 0.4px currentColor;
}
.commands td {
  font-size: 15px;
  color: var(--muted);
}

/* --------------------------------------------------------------- install */

.install { padding: 96px 0; }
.install .section-lead { font-size: 17px; line-height: 26px; }
.install .container {
  display: grid;
  grid-template-columns: minmax(0, 432px) minmax(0, 1fr);
  gap: 40px 72px;
  align-items: center;
}

/* ------------------------------------------------------------------- cta */

.cta {
  background: var(--ink);
  color: var(--paper);
  padding: 88px 0 96px;
  text-align: center;
}
.cta h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.2;
}
.cta p {
  margin-top: 24px;
  font-size: 18px;
  line-height: 28px;
  color: var(--code-dim);
}
.cta .actions { justify-content: center; margin-top: 26px; }
.cta :focus-visible { outline-color: var(--paper); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}
.site-footer .brand img { width: 98px; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-left: auto;
}
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .site-header .container { gap: 12px 28px; }
  .nav { gap: 4px 22px; }
  .hero .container,
  .install .container,
  .step { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 72px 0 80px; }
  .hero .lead { max-width: 640px; }
  .brief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header { position: static; }
  .site-header .container {
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 12px;
  }
  .nav { order: 3; width: 100%; }
  .site-footer nav { margin-left: 0; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0 72px; }
  .install { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .hero .lead { font-size: 18px; line-height: 29px; }
  .section-lead { font-size: 17px; line-height: 28px; }
  .brief-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 44px; }
  .code { padding: 16px 16px 18px; }
  .code pre { font-size: 13px; line-height: 22px; }
  .commands, .commands tbody, .commands tr, .commands th, .commands td { display: block; width: auto; }
  .commands th { padding: 16px 0 2px; border-bottom: 0; }
  .commands td { padding: 0 0 16px; }
  .cta { padding: 72px 0; }
  .cta p { font-size: 17px; }
}

@media (max-width: 420px) {
  .header-cta .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .brand img { width: 88px; }
  .nav { gap: 2px 18px; font-size: 14px; }
  .stats dl { gap: 28px 20px; }
  .stat dd { font-size: 40px; line-height: 48px; }
}
