:root {
  --ink: #2b2d26;
  --ink-soft: #74736a;
  --paper: #f7f5ee;
  --paper-2: #ece9df;
  --line: #ddd9ce;
  --green: #356c4d;
  --green-dark: #244c37;
  --green-light: #e3ede4;
  --amber: #bd7425;
  --red: #b0342c;
  --blue: #2e5c8a;
  --radius: 6px;
  --shadow: 0 3px 18px rgba(43,45,38,.07);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
a { color: var(--green-dark); }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .92em; background: var(--paper-2); padding: .1em .35em; border-radius: 5px; }
.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.mt { margin-top: 28px; }
.center { text-align: center; }

/* top strip + edge badge */
.topstrip { background: var(--ink); color: #dfe7e1; font-size: 13px; }
.topstrip__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 0; flex-wrap: wrap; }
.edge-pill { display: inline-flex; align-items: center; gap: 8px; padding: 3px 11px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.edge-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.edge-pill--on { background: rgba(94,193,138,.16); color: #8fe0b2; }
.edge-pill--on .dot { background: #5ec18a; box-shadow: 0 0 0 3px rgba(94,193,138,.22); }
.edge-pill--off { background: rgba(224,124,90,.16); color: #f0a98e; }
.edge-pill--off .dot { background: #e07c5a; }

/* header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; }
.brand__text { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.brand__text em { font-style: normal; font-weight: 400; color: var(--ink-soft); margin-left: 6px; font-size: 14px; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { padding: 7px 11px; border-radius: 8px; text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a.is-active { background: var(--green-light); color: var(--green-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.searchbox { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.searchbox input { border: 0; padding: 7px 14px; width: 168px; font: inherit; font-size: 14px; background: transparent; outline: none; }
.searchbox button { border: 0; background: transparent; padding: 0 12px; cursor: pointer; color: var(--green); font-size: 16px; }
.cartlink { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cartlink__count { background: var(--green); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 9px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: .15s; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn--danger { background: #fff; border-color: #e3b7b3; color: var(--red); }
.btn--danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn--lg { padding: 12px 22px; font-size: 15px; }
.btn--sm { padding: 5px 11px; font-size: 13px; }
.btn--block { width: 100%; }

/* hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: .88fr 1.12fr; gap: 42px; align-items: center; padding: 58px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--green); margin: 0 0 10px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; margin: 0 0 16px; letter-spacing: -.03em; }
.lede { font-size: 17px; color: var(--ink-soft); max-width: 52ch; margin: 0 0 22px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { list-style: none; display: flex; gap: 34px; padding: 30px 0 0; margin: 0; }
.hero__stats strong { display: block; font-size: 26px; letter-spacing: -.02em; }
.hero__stats span { font-size: 13px; color: var(--ink-soft); }
.hero__art { overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }

/* sections */
.section { padding: 46px 0; }
.section--narrow { width: min(640px, 92vw); margin-inline: auto; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section__head h2 { font-size: 25px; margin: 0; letter-spacing: -.02em; }
.page-title { font-size: 32px; margin: 8px 0 6px; letter-spacing: -.025em; }
.page-sub { color: var(--ink-soft); margin: 0 0 22px; max-width: 78ch; }
.bypass-note { background: #fff5e6; border-left: 3px solid var(--amber); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.crumbs { font-size: 13px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

/* grid + cards */
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(43,45,38,.12); }
.card__media { position: relative; display: block; background: var(--paper-2); }
.card__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card__badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.card__body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card__cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card__blurb { font-size: 13px; color: var(--ink-soft); margin: 0; flex: 1; }
.card__foot { display: flex; justify-content: space-between; align-items: baseline; }
.price { font-weight: 700; font-size: 17px; }
.price--lg { font-size: 27px; }
.rating { font-size: 13px; color: var(--amber); font-weight: 600; }
.rating small { color: var(--ink-soft); font-weight: 400; }

/* band */
.band { background: var(--ink); color: #e5ebe7; }
.band__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 36px 0; }
.band h3 { margin: 0 0 6px; font-size: 17px; color: #fff; }
.band p { margin: 0; font-size: 14px; color: #b3c0b8; }

/* filters */
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.filters__row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters__label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; }
.chip { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--ink-soft); background: #fff; font-weight: 600; }
.chip:hover { border-color: var(--green); color: var(--green-dark); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.chip--sm { padding: 4px 11px; font-size: 12px; }

/* pdp */
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; margin: 18px 0 44px; }
.pdp__media { background: var(--paper-2); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pdp__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pdp__sku { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; }
.pdp__blurb { color: var(--ink-soft); }
.pdp__facts { list-style: none; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.stock { font-weight: 600; color: var(--green-dark); background: var(--green-light); display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 14px; }

/* sale */
.salebanner { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: linear-gradient(120deg, #24402f, #3d6f4e); color: #fff; padding: 30px 34px; border-radius: var(--radius); margin-bottom: 30px; flex-wrap: wrap; }
.salebanner h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.02em; }
.salebanner .lede { color: #cfe3d6; margin: 0; }
.salebanner .eyebrow { color: #9fdcb8; }
.countdown { font-family: var(--mono); font-size: 34px; font-weight: 700; background: rgba(255,255,255,.12); padding: 12px 20px; border-radius: 10px; }

/* tables / panels */
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { background: var(--paper-2); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.table tbody tr:last-child td { border-bottom: 0; }
.table--tight th, .table--tight td { padding: 7px 11px; font-size: 13px; }
.table td img { display: inline-block; vertical-align: middle; border-radius: 6px; margin-right: 10px; }
.empty { color: var(--ink-soft); text-align: center; padding: 26px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 12px; font-size: 16px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 0 0 16px; }
.dl dt { color: var(--ink-soft); }
.dl dd { margin: 0; font-weight: 600; }
.summary { list-style: none; padding: 0; margin: 0 0 12px; }
.summary li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 0; font-size: 18px; }
.cart-total strong { font-size: 24px; }
.cart-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; background: var(--paper-2); color: var(--ink-soft); }
.tag--delivered { background: var(--green-light); color: var(--green-dark); }
.tag--shipped { background: #e7effa; color: var(--blue); }
.tag--cacheable { background: var(--green-light); color: var(--green-dark); }
.tag--nostore { background: #fdeceb; color: var(--red); }
.method { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--paper-2); }
.method--get { background: #e7effa; color: var(--blue); }
.method--post { background: #fdf0e2; color: var(--amber); }

/* forms */
.form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.form input { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); }
.form input:focus { outline: 2px solid var(--green); outline-offset: 1px; background: #fff; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.alert { padding: 11px 14px; border-radius: 9px; font-size: 14px; margin-bottom: 14px; }
.alert--error { background: #fdeceb; color: var(--red); border: 1px solid #f0c7c3; }
.alert--ok { background: var(--green-light); color: var(--green-dark); border: 1px solid #bfdcc9; }

/* ops */
.statgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat__label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; }
.stat__value { font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.statgrid--row { grid-template-columns: repeat(4, 1fr); }
.stat__value--sm { font-size: 22px; }
.stat__hint { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.ops-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }

/* ops: browser-measured "where did this come from" verdict */
.verdict__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.verdict__head h3 { margin: 0; }
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 4px 0 18px; }
.verdict__cell { padding: 16px 18px; background: var(--paper, #fafaf7); border-radius: var(--radius); border-left: 4px solid var(--line); }
.verdict__cell--cf { border-left-color: var(--green); }
.verdict__cell--origin { border-left-color: #d99a2b; }
.verdict__cell .stat__value { font-size: 40px; line-height: 1; display: block; }
.verdict__cell .stat__label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 700; display: block; margin-top: 4px; }
@media (max-width: 720px) { .verdict { grid-template-columns: 1fr; } }

/* ops: the two front doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
/* /ops shows one hostname only — the direct-origin comparison is done on that site itself. */
.doors--single { grid-template-columns: 1fr; }
.door { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border-top: 4px solid var(--line); }
.door--cf { border-top-color: var(--green); }
.door--direct { border-top-color: #d99a2b; }
.door__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.door__title { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.door__host { font-size: 12px; }
.door__big { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.door__big .stat__value { font-size: 48px; line-height: 1; }
.door__big .stat__label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.door__split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.door__split .stat { padding: 12px 14px; background: var(--paper, #fafaf7); }
.legend { font-size: 12.5px; color: var(--ink-soft); margin: 10px 0 0; line-height: 1.6; }
.legend__swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin: 0 4px 0 6px; }
.legend__swatch--cf { background: #2f6f4e; }
.legend__swatch--direct { background: #d99a2b; }

/* lab + console */
.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.labcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.labcard h3 { margin: 0; font-size: 16px; }
.labcard p { margin: 0 0 8px; font-size: 13px; color: var(--ink-soft); flex: 1; }
.console { background: #10231a; color: #a8e6c1; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; padding: 16px; border-radius: var(--radius); overflow: auto; max-height: 340px; white-space: pre-wrap; margin: 0; }
.console--tall { max-height: 460px; }
.console .ok { color: #7fe0a4; }
.console .bad { color: #ff9c8a; }
.console .warn { color: #ffd479; }

/* footer */
.site-footer { background: var(--ink); color: #97a79d; margin-top: 50px; font-size: 13px; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; flex-wrap: wrap; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 4px 0 0; }
.footer-meta { display: grid; gap: 4px; text-align: right; font-family: var(--mono); font-size: 12px; }
.footer-meta code { background: rgba(255,255,255,.07); color: #cfe0d6; }

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .pdp, .panel-grid { grid-template-columns: 1fr; }
  .statgrid { grid-template-columns: repeat(3, 1fr); }
  .statgrid--row { grid-template-columns: repeat(2, 1fr); }
  .doors { grid-template-columns: 1fr; }
  .lab-grid { grid-template-columns: 1fr 1fr; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .nav { order: 3; grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .grid--4, .lab-grid, .band__inner { grid-template-columns: 1fr; }
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  .footer-meta { text-align: left; }
}
