/* ==========================================================================
   Red Zebra Valve — site stylesheet
   Design tokens extracted from the approved Ardot canvas (file 726344986389204)
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand greys / greens */
  --green-900: #0E1A12;   /* utility bar, footer base, hero gradient end   */
  --green-850: #0B140E;   /* footer bottom bar                             */
  --green-800: #14291A;   /* footer cta band, zebra stripe band            */
  --green-750: #1C3D24;   /* hero gradient start                           */
  --green-700: #16231A;   /* ghost button fill on dark                     */
  --green-line: #33463A;  /* hairlines on dark                             */
  --green-text: #C3CCC1;  /* body copy on dark                             */
  --green-text-2: #7E8C7E;/* secondary copy on dark                        */
  --green-eyebrow: #8FA08F;/* mono eyebrow on dark                         */

  /* Red */
  --red: #810B14;         /* primary brand red                             */
  --red-bright: #C4202E;  /* crop marks / accents on dark                  */
  --red-soft: #FBF3F3;    /* warning block fill                            */

  /* Neutrals */
  --white: #FFFFFF;
  --paper: #F4F5F2;       /* alternating section fill                      */
  --paper-2: #F7F8F5;     /* table zebra row                               */
  --head: #EDEFEA;        /* table header row                              */
  --line: #E1E4DE;        /* borders on light                              */
  --line-2: #E7EAE4;      /* dividers inside cards                         */
  --ink: #161916;         /* headings                                      */
  --ink-2: #4A514A;       /* body copy                                     */
  --ink-3: #797A79;       /* mono labels, meta                             */
  --ink-4: #5A615A;       /* tertiary                                      */

  /* Utility */
  --wa: #25D366;

  /* Geometry */
  --pad: 80px;
  --content: 1280px;
  --radius: 2px;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink-2);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- 3. Layout ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 96px 0; }
.section--paper { background: var(--paper); }
.section--tight { padding: 72px 0; }

/* ---------- 4. Typography helpers --------------------------------------- */
.mono {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
}
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow--on-dark { color: var(--green-eyebrow); }
.eyebrow--red { color: var(--red); }
.h-section { font-size: 42px; }
.h-page { font-size: 40px; }

/* Section header block */
.sec-head { display: flex; flex-direction: column; gap: 18px; }
.sec-head__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.sec-head__sub { font-size: 16px; color: var(--ink-2); max-width: 62ch; }

/* ---------- 5. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #9C0F1A; }
.btn--ghost { background: var(--green-700); color: var(--green-text); border-color: var(--green-line); }
.btn--ghost:hover { border-color: var(--green-text-2); color: #fff; }
.btn--wa { background: transparent; color: var(--green-text); border-color: var(--green-line); }
.btn--wa:hover { border-color: var(--wa); color: #fff; }
.btn--wa svg { color: var(--wa); }
.btn--red-outline {
  background: transparent; color: var(--red); border-color: var(--red);
}
.btn--red-outline:hover { background: var(--red); color: #fff; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 600; color: var(--red);
}
.link-arrow svg { transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Top utility bar ----------------------------------------- */
.utility { background: var(--green-900); height: 42px; }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.utility__left { display: flex; align-items: center; gap: 16px; }
.utility__item {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: var(--green-text-2); letter-spacing: 0.02em;
}
.utility__item a:hover { color: #fff; }
.utility__div { width: 1px; height: 14px; background: var(--green-line); }
.utility__right { display: flex; align-items: center; gap: 10px; }
.utility__cert {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: var(--green-eyebrow); letter-spacing: 0.1em;
}
.utility__cert::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  background: var(--red-bright); margin-right: 10px; vertical-align: middle;
}

/* ---------- 7. Header --------------------------------------------------- */
.header { background: #fff; border-bottom: 0; position: sticky; top: 0; z-index: 60; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: 27px; width: auto; }
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__name {
  font-family: 'Archivo', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--ink); letter-spacing: 0.02em; line-height: 1.1;
}
.brand__sub {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px; font-weight: 500;
  color: var(--ink-3); letter-spacing: 0.12em; line-height: 1.1;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 14px; color: var(--ink); position: relative; padding: 4px 0;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current='page'] { color: var(--red); font-weight: 500; }
.nav a[aria-current='page']::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--red);
}
.header__actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink-3); }
.header .btn--primary { height: 44px; padding: 0 22px; font-size: 14px; }
.burger { display: none; }

/* Red accent rule under header */
.accent { height: 3px; background: var(--red); }

/* ---------- 8. Hero ----------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--green-750) 0%, var(--green-900) 100%);
  padding: 84px 0 92px;
}
.hero .wrap { display: grid; grid-template-columns: 1fr 540px; gap: 64px; align-items: start; }
.hero__copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 {
  font-size: 52px; font-weight: 800; color: #fff; letter-spacing: -0.025em;
}
.hero__sub { font-size: 16px; color: var(--green-text); max-width: 60ch; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.trust {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px; padding-top: 6px;
  border-top: 1px solid var(--green-line); margin-top: 4px;
}
.trust li {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: var(--green-eyebrow); letter-spacing: 0.04em;
  padding-top: 14px; display: flex; align-items: center; gap: 10px;
}
.trust li::before {
  content: ''; width: 6px; height: 6px; background: var(--red-bright); flex: none;
}
.hero__visual { display: flex; flex-direction: column; }
.hero__figure { position: relative; }
.hero__figure img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 800; object-fit: cover; }
.crop { position: absolute; width: 26px; height: 26px; border: 1.5px solid var(--red-bright); }
.crop--tl { top: -13px; left: -13px; border-right: 0; border-bottom: 0; }
.crop--br { bottom: -13px; right: -13px; border-left: 0; border-top: 0; }
.specbar { display: flex; background: var(--green-800); min-height: 54px; }
.specbar__rule { width: 4px; background: var(--red); flex: none; }
.specbar__inner { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 18px; }
.specbar__row {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: var(--green-text); letter-spacing: 0.04em;
}

/* ---------- 9. Page hero (inner pages) --------------------------------- */
.pagehero { background: var(--white); padding: 34px 0 56px; border-bottom: 1px solid var(--line); }
.pagehero__crumb {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-bottom: 26px;
}
.crumbs {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.crumbs a:hover { color: var(--red); }
.crumbs b { color: var(--ink); font-weight: 500; }
.crumbs .sep { color: var(--line); }
.pagehero__nav { display: flex; gap: 22px; }
.pagehero__nav a {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.1em; color: var(--ink-3);
}
.pagehero__nav a:hover { color: var(--red); }
.pagehero h1 { font-size: 46px; max-width: 22ch; }
.pagehero__sub { font-size: 16px; color: var(--ink-2); max-width: 78ch; margin-top: 20px; }
.pagehero__eyebrow { margin-bottom: 18px; }
.metarow {
  display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 30px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.metarow div {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: var(--ink-2); letter-spacing: 0.04em; display: flex; align-items: center; gap: 10px;
}
.metarow div::before { content: ''; width: 6px; height: 6px; background: var(--red); flex: none; }

/* ---------- 10. Series cards (home) ------------------------------------ */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.card {
  background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.card__media { height: 190px; background: var(--paper); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__meta {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.1em; color: var(--red); text-transform: uppercase;
}
.card__title { font-size: 19px; }
.card__desc { font-size: 13px; color: var(--ink-2); flex: 1; }
.card__spec {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  line-height: 1.6; color: var(--ink-2); letter-spacing: 0.02em;
  border-top: 1px solid var(--line-2); padding-top: 12px;
}
.card__spec span { display: block; }

/* Materials strip */
.materials { display: flex; flex-direction: column; gap: 18px; }
.materials__top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.materials__row { display: flex; gap: 28px; align-items: stretch; flex-wrap: wrap; }
.material { display: flex; gap: 14px; align-items: flex-start; flex: 1 1 320px; }
.material__swatch { width: 38px; height: 38px; border-radius: var(--radius); flex: none; }
.material__swatch--carbon { background: #3A3D3A; }
.material__swatch--ss { background: #C9CFC8; border: 1px solid #B0B7AF; }
.material__name { font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 600; color: var(--ink); }
.material__desc { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.material__div { width: 1px; background: var(--line); }

/* ---------- 11. Factory figures ---------------------------------------- */
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fig img { width: 100%; height: 260px; object-fit: cover; }
.fig figcaption {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.06em; padding-top: 12px;
}
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cap { border-top: 2px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.cap__idx { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--red); letter-spacing: 0.1em; }
.cap__name { font-family: 'Archivo', sans-serif; font-size: 16px; font-weight: 600; color: var(--ink); }
.cap__desc { font-size: 13px; color: var(--ink-2); }

/* ---------- 12. Filter bar --------------------------------------------- */
.filters { background: var(--paper); padding: 26px 0; border-bottom: 1px solid var(--line); }
.filters__inner { display: flex; flex-direction: column; gap: 14px; }
.filters__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filters__row--split { justify-content: space-between; }
.filters__label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; color: var(--ink-3); flex: none; width: 66px;
}
.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--ink-2);
  background: var(--white); border: 0; border-radius: var(--radius);
  padding: 8px 16px; cursor: pointer; transition: background .15s, color .15s;
}
.chip:hover { background: #E9EBE6; }
.chip[aria-pressed='true'] { background: var(--red); color: #fff; }
.chip--sm { padding: 7px 14px; }
.results-count {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; color: var(--ink-3);
}
.empty {
  grid-column: 1 / -1; padding: 64px 0; text-align: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--ink-3);
}

/* ---------- 13. Product card ------------------------------------------- */
.product { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.product__media {
  height: 200px; background: var(--paper); display: flex; align-items: center; justify-content: center;
  padding: 12px; overflow: hidden;
}
.product__media img { width: 100%; height: 100%; object-fit: contain; }
.product__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product__meta {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.08em; color: var(--red); text-transform: uppercase;
}
.product__title { font-family: 'Archivo', sans-serif; font-size: 17px; font-weight: 600; color: var(--ink); }
.product__specs {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; line-height: 1.7;
  color: var(--ink-2); letter-spacing: 0.04em; flex: 1;
}
.product__rule { height: 1px; background: var(--line-2); }

/* ---------- 14. Tables ------------------------------------------------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table.dims { width: 100%; border-collapse: collapse; min-width: 760px; }
table.dims th {
  background: var(--head); font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); text-align: left; padding: 14px 18px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
table.dims td {
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--ink-2);
  padding: 12px 18px; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
table.dims tbody tr:nth-child(even) { background: var(--paper-2); }
table.dims tbody tr:hover { background: #EFF1EC; }
table.dims td:first-child { color: var(--ink); font-weight: 500; }
table.dims .num { text-align: right; }
table.dims td.is-ref { background: var(--red-soft); color: var(--red); font-weight: 500; }
.tablecap {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-top: 0;
}
.tablecap span {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--ink-3);
}

/* Spec table (definition rows) */
.specs { border: 1px solid var(--line); background: #fff; }
.specs__row { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 15px 22px; border-bottom: 1px solid var(--line-2); }
.specs__row:last-child { border-bottom: 0; }
.specs__row:nth-child(even) { background: var(--paper-2); }
.specs__k { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.specs__v { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--ink); }

/* Note / callout */
.note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--red-soft); padding: 14px 18px; border-radius: var(--radius);
}
.note__bar { width: 3px; align-self: stretch; background: var(--red); flex: none; }
.note p { font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 600; color: var(--red); }
.note--plain { background: var(--paper); }
.note--plain .note__bar { background: var(--ink-3); }
.note--plain p { font-family: 'Inter', sans-serif; font-weight: 400; color: var(--ink-2); }

/* Callout block used on Technical Data */
.callout { border: 1px solid var(--line); background: var(--paper); padding: 26px 28px; display: flex; gap: 20px; }
.callout__fig {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--red);
  letter-spacing: 0.14em; flex: none; width: 62px;
}
.callout h3 { font-size: 14px; margin-bottom: 8px; }
.callout p { font-size: 13px; color: var(--ink-2); }

/* Standards grid (Technical Data) */
.std {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line); background: #fff;
}
.std__cell { padding: 20px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.std__cell:last-child { border-right: 0; }
.std__k { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.std__v { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--ink); line-height: 1.5; }

/* ---------- 15. Detail page -------------------------------------------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.gallery__main { background: var(--paper); border: 1px solid var(--line); position: relative; }
.gallery__main img { width: 100%; height: 470px; object-fit: contain; }
.gallery__label {
  position: absolute; left: 18px; top: 16px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em;
}
.gallery__scale {
  position: absolute; right: 18px; bottom: 16px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em;
}
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.thumbs button { background: var(--paper); border: 1px solid var(--line); padding: 8px; cursor: pointer; }
.thumbs button[aria-pressed='true'] { border-color: var(--red); }
.thumbs img { width: 100%; height: 96px; object-fit: contain; }
.info { display: flex; flex-direction: column; gap: 18px; }
.info h1 { font-size: 38px; }
.info__model { font-family: 'IBM Plex Mono', monospace; font-size: 15px; color: var(--ink-3); letter-spacing: 0.06em; }
.info__desc { font-size: 15px; color: var(--ink-2); }
.keyspecs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.keyspecs div { padding: 14px 18px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.keyspecs div:nth-child(2n) { border-right: 0; }
.keyspecs div:nth-last-child(-n+2) { border-bottom: 0; }
.keyspecs dt { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.keyspecs dd { margin: 6px 0 0; font-family: 'Archivo', sans-serif; font-size: 18px; font-weight: 600; color: var(--ink); }
.features { display: flex; flex-direction: column; gap: 14px; }
.feature { display: flex; flex-direction: column; gap: 5px; }
.feature h4 { font-size: 14.5px; }
.feature p { font-size: 13px; color: var(--ink-2); }
.detail__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Related models */
.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rel { border: 1px solid var(--line); background: #fff; }
.rel__media { height: 160px; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 10px; }
.rel__media img { width: 100%; height: 100%; object-fit: contain; }
.rel__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.rel__meta { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--red); letter-spacing: 0.06em; }
.rel__title { font-family: 'Archivo', sans-serif; font-size: 18px; font-weight: 600; color: var(--ink); }
.rel__spec { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- 16. Quote page --------------------------------------------- */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.formcard { border: 1px solid var(--line); background: #fff; padding: 26px 28px; display: flex; flex-direction: column; gap: 20px; }
.formcard + .formcard { margin-top: 20px; }
.formcard__head { display: flex; flex-direction: column; gap: 8px; }
.formcard__idx { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--red); letter-spacing: 0.1em; }
.formcard h2 { font-size: 21px; }
.formcard__hint { font-size: 13px; color: var(--ink-3); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase;
}
/* the file drop-zone is a <label>, but it must not inherit the mono caption style */
.field .dropzone {
  font-family: 'Inter', sans-serif; font-size: 13px;
  letter-spacing: 0; text-transform: none; color: var(--ink-3);
}
.field input, .field select, .field textarea {
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 12px 14px; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #A9AEA6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.dropzone {
  border: 1px dashed var(--line); background: var(--paper); padding: 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 13px; color: var(--ink-3); text-align: center;
}
.dropzone b { font-family: 'Archivo', sans-serif; font-size: 18px; color: var(--red); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); }
.consent input { margin-top: 3px; accent-color: var(--red); }
.formfoot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.formfoot span { font-size: 13px; color: var(--ink-2); }
.formfoot a { color: var(--red); font-weight: 600; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label {
  font-family: 'Inter', sans-serif; font-size: 12.5px; text-transform: none; letter-spacing: 0;
  color: var(--ink-2); background: var(--paper); padding: 8px 16px; border-radius: var(--radius);
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.radio-row input { accent-color: var(--red); }

.aside { display: flex; flex-direction: column; gap: 20px; }
.panel { border: 1px solid var(--line); background: var(--paper); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel__title { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; }
.lines { display: flex; flex-direction: column; gap: 14px; }
.line { display: flex; flex-direction: column; gap: 3px; }
.line dt { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.12em; color: var(--ink-3); }
.line dd { margin: 0; font-size: 13px; color: var(--ink); }
.line dd a:hover { color: var(--red); }
.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 14px; }
.step__idx { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--red); flex: none; padding-top: 2px; }
.step h4 { font-size: 15px; }
.step p { font-size: 13px; color: var(--ink-2); }
.panel--dark { background: var(--green-900); border-color: var(--green-900); }
.panel--dark .panel__title { color: var(--green-eyebrow); }
.panel--dark .checks li { color: var(--green-text); }
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ''; width: 6px; height: 6px; background: var(--red-bright); flex: none; margin-top: 7px; }

/* ---------- 17. Ordering code block ------------------------------------ */
.code-block { display: grid; grid-template-columns: 520px 1fr; border: 1px solid var(--line); }
.code-block__left {
  background: #16251A; padding: 30px 32px 40px; display: flex; flex-direction: column; gap: 18px;
}
.code-block__code {
  font-family: 'Archivo', sans-serif; font-size: 19px; font-weight: 600;
  color: #fff; line-height: 1.5; letter-spacing: 0.01em;
}
.code-block__code .dim { color: #fff; }
.code-block__code .hl { color: #E0353E; }
.code-block__note { font-size: 12.5px; color: #A8B4A8; }
.code-block__right { background: #fff; padding: 30px 32px; display: flex; flex-direction: column; gap: 14px; }
.code-list { display: flex; flex-direction: column; margin-top: 6px; }
.code-row {
  display: grid; grid-template-columns: 108px 100px 1fr; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line-2); align-items: baseline;
}
.code-row:last-child { border-bottom: 0; }
.code-row__k {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500;
  color: var(--red); letter-spacing: 0.04em;
}
.code-row__name {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: var(--ink);
}
.code-row__desc { font-size: 13px; color: var(--ink-2); }

.footnotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.footnotes p {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.65;
  border-top: 2px solid var(--line); padding-top: 16px;
}
.footnotes b {
  display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  font-weight: 500; letter-spacing: 0.12em; color: var(--ink-3);
  text-transform: uppercase; margin-bottom: 8px;
}

/* ---------- 18b. Materials / Applications / misc blocks ---------------- */
.mat { display: flex; gap: 28px; align-items: flex-start; }
.mat__body { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.mat__body .checks { max-width: 78ch; }
.mat .chip--sm { background: var(--paper); cursor: default; }

.app { display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: start; }
.app__idx {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--red);
  letter-spacing: 0.12em; padding-top: 8px;
}
.app__body { display: flex; flex-direction: column; gap: 14px; }
.app__body .checks { max-width: 82ch; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.smap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.smap { display: flex; flex-direction: column; gap: 14px; }
.smap a { font-size: 15px; color: var(--ink-2); }
.smap a:hover { color: var(--red); }
.smap h3 { color: var(--ink-3); }

/* ---------- 19. Footer -------------------------------------------------- */
.cta-band { background: var(--green-800); padding: 46px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 26px; }
.cta-band p { color: var(--green-text); font-size: 15px; margin-top: 8px; max-width: 68ch; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.footer { background: var(--green-900); }
.footer__main { padding: 64px 0; display: flex; gap: 56px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 22px; width: 360px; flex: none; }
.footer__brand img { height: 30px; width: auto; align-self: flex-start; }
.footer__desc { font-size: 14px; color: var(--green-text-2); }
.footer__lines { display: flex; flex-direction: column; gap: 10px; }
.footer__lines div { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--green-text); letter-spacing: 0.02em; }
.footer__lines a:hover { color: #fff; }
.footer__lines .wa { color: var(--wa); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; flex: 1; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col h3 {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--green-eyebrow); text-transform: uppercase;
}
.footer__col a { font-size: 14px; color: var(--green-text); }
.footer__col a:hover { color: #fff; }

.zebra {
  height: 44px;
  background: repeating-linear-gradient(116.57deg,
    var(--green-800) 0 23.2px, var(--red) 23.2px 35.8px);
}
.footer__bottom { background: var(--green-850); padding: 22px 0; }
.footer__bottom .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer__bottom p, .footer__bottom nav a {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--green-text-2);
}
.footer__bottom nav { display: flex; gap: 16px; }
.footer__bottom nav a:hover { color: #fff; }

/* ---------- 18. Utilities ----------------------------------------------- */
.stack-18 { display: flex; flex-direction: column; gap: 18px; }
.stack-26 { display: flex; flex-direction: column; gap: 26px; }
.stack-52 { display: flex; flex-direction: column; gap: 52px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.lead { font-size: 15px; color: var(--ink-2); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* section band used to separate page hero from body */
.band { background: var(--paper); }

/* ---------- 19. Responsive --------------------------------------------- */
@media (max-width: 1200px) {
  :root { --pad: 40px; }
  .hero .wrap { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero h1 { font-size: 44px; }
  .grid-4, .figs, .caps, .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .std { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .std__cell:nth-child(3n) { border-right: 0; }
  .std__cell { border-bottom: 1px solid var(--line-2); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .hero { padding: 52px 0 60px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 36px; }
  .h-section { font-size: 32px; }
  .pagehero h1 { font-size: 34px; }
  .info h1 { font-size: 30px; }
  .nav, .header__actions .btn--primary { display: none; }
  .burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid var(--line); background: #fff;
    border-radius: var(--radius); cursor: pointer; color: var(--ink);
  }
  .header .wrap { height: 72px; }
  .header.is-open .nav {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--pad) 22px;
  }
  .header.is-open .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line-2); font-size: 16px; }
  .header.is-open .nav a[aria-current='page']::after { display: none; }
  .utility { height: auto; padding: 10px 0; }
  .utility .wrap { flex-direction: column; gap: 6px; align-items: flex-start; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: 1fr 1fr; }
  .specs__row { grid-template-columns: 1fr; gap: 6px; }
  .keyspecs { grid-template-columns: 1fr; }
  .keyspecs div { border-right: 0 !important; }
  .footer__main { flex-direction: column; gap: 40px; }
  .footer__brand { width: 100%; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .pagehero__crumb { flex-direction: column; align-items: flex-start; gap: 14px; }
  .filters__label { width: auto; }
  .filters__row--split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --pad: 20px; }
  .hero h1 { font-size: 30px; }
  .h-section { font-size: 26px; }
  .pagehero h1 { font-size: 27px; }
  .grid-4, .figs, .caps, .related { grid-template-columns: 1fr; }
  .std { grid-template-columns: 1fr; }
  .std__cell { border-right: 0; }
  .fields { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__ctas, .cta-band__actions, .detail__ctas { width: 100%; }
}
