/* Theme taken from the "Percent, not RPM" whitepaper */
:root {
  --blue: #0f6cbd;
  --blue-wash: #ebf2fb;
  --ink: #242424;
  --body: #424242;
  --muted: #707070;
  --rule: #dfdfdf;
  --panel: #f5f5f5;
  --slate: #616161;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--body); font: 400 16px/1.6 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.top { padding: 28px 0 0; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; text-decoration: none; }
.logo b { font-weight: 600; }
.logo span { font-weight: 300; }
.logo i { display: inline-block; width: 4px; height: 17px; margin-right: -6px; background: var(--blue); transform: skewX(-20deg); }
.logo i + i { margin: 0 0 0 9px; }
.nav a { margin-left: 20px; color: var(--slate); font-size: 14px; text-decoration: none; }
.nav a:first-child { margin-left: 0; }
.nav a:hover { color: var(--blue); }

.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 0; color: var(--ink); font-size: clamp(38px, 7vw, 60px); font-weight: 300; line-height: 1.12; }
.lede { max-width: 720px; margin: 16px 0 0; color: var(--muted); font-size: clamp(18px, 2.4vw, 22px); font-weight: 300; line-height: 1.45; }
.hero { padding: 48px 0 36px; border-bottom: 1px solid var(--rule); }

.section { padding: 36px 0 12px; }
h2 { margin: 4px 0 10px; color: var(--ink); font-size: 22px; font-weight: 600; line-height: 1.3; }
.section > .wrap > p { max-width: 820px; margin-top: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 22px; }
.card { display: flex; flex-direction: column; background: var(--panel); border-top: 3px solid var(--blue); color: inherit; text-decoration: none; }
.card.dev { border-top-color: var(--slate); }
.card:hover h3 { color: var(--blue); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
h3 { margin: 0 0 6px; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.3; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 13px; }
.status { color: var(--blue); font-weight: 600; }
.dev .status, .status.dev { color: var(--slate); }
.price { color: var(--muted); }

.product { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; padding: 44px 0 32px; border-bottom: 1px solid var(--rule); }
.product h1 { font-size: clamp(34px, 5.5vw, 48px); }
.product .lede { font-size: 18px; }
.figure img { width: 100%; }
.caption { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.buy { align-self: start; padding: 18px 20px; background: var(--panel); border-top: 3px solid var(--blue); }
.buy.dev { border-top-color: var(--slate); }
.buy .label { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.buy .amount { margin: 0 0 14px; color: var(--blue); font-size: 30px; font-weight: 300; line-height: 1.25; }
.buy .note { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.btn { display: block; padding: 10px 14px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; text-align: center; text-decoration: none; }
.btn:hover { background: #0c5a9e; }
.btn.off { background: var(--rule); color: var(--slate); }
button.btn { width: 100%; border: 0; font-family: inherit; cursor: pointer; }
button.btn:disabled { background: var(--slate); cursor: default; }

.notify { position: relative; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.notify label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
.notify input[type="email"] { display: block; width: 100%; margin-bottom: 8px; padding: 9px 10px; border: 1px solid #9d9d9d; background: #fff; color: var(--ink); font: 400 15px var(--font); }
.notify input[type="email"]:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.notify .trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.notify-status { margin: 10px 0 0; color: var(--blue); font-size: 14px; font-weight: 600; line-height: 1.4; }
.notify-status:empty { display: none; }
.notify-status.error { color: #c50f1f; }

ul.points { margin: 0; padding-left: 20px; }
ul.points li { margin-bottom: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
th { width: 34%; color: var(--muted); font-weight: 400; }
.heads-up { margin-top: 16px; padding: 14px 18px; background: var(--blue-wash); font-size: 15px; }
.heads-up p { margin: 0; }

.pin-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.pin-key > span { display: inline-flex; align-items: center; }
.pinout { margin-top: 22px; }
.pinout .caption { margin: 0 0 12px; }
svg.connector { display: block; width: 100%; height: auto; }
.shell { fill: var(--panel); stroke: var(--slate); stroke-width: 2; }
.pin.power, .chip.power { fill: #c50f1f; background: #c50f1f; }
.pin.ground, .chip.ground { fill: #424242; background: #424242; }
.pin.canh, .chip.canh { fill: #0f6cbd; background: #0f6cbd; }
.pin.canl, .chip.canl { fill: #5c2e91; background: #5c2e91; }
.pin.input, .chip.input { fill: #107c10; background: #107c10; }
.pin.output, .chip.output { fill: #bc4b09; background: #bc4b09; }
.pin.none { fill: #fff; stroke: #9d9d9d; stroke-width: 1.5; }
.chip.none { background: #fff; border: 1.5px solid #9d9d9d; color: var(--muted); }
.pin-no { fill: #fff; font-size: 13px; font-weight: 600; text-anchor: middle; }
.pin-no.none { fill: var(--muted); }
.pin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; }
.pin-list li { display: flex; align-items: center; }
.chip { display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; color: #fff; font-size: 11.5px; font-weight: 600; }
.pin-key .chip { min-width: 14px; height: 14px; margin-right: 6px; }

footer { margin-top: 44px; padding: 18px 0 36px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12.5px; }
footer p { max-width: 820px; margin: 0 0 8px; }

@media (max-width: 760px) {
  .product { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 28px; }
  .hero { padding-top: 32px; }
  th { width: 42%; }
}
