/* Partbench product page. Visual language from the app's DESIGN.md:
   ESD-mat grey, white drawer labels, soldermask green, copper as the only
   warning colour, silkscreen outlines. Plex Sans for text, Plex Mono only
   for values and reference designators. Radii 4/6/10, no shadows on cards. */
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --mat: #E9ECEF; --label: #FFFFFF; --label2: #F3F5F7; --ink: #1A1E22; --ink2: #5C6670; --line: #D3D8DD;
  --mask: #1F6B4A; --board: #134D35; --board-deep: #0E3A28; --silk: #EEF3EF; --silk2: #A9C4B5;
  --copper: #B4622B; --copper-hi: #D98A4E; --cabinet: #2B3238;
  --g-passive: #6B7C8C; --g-discrete: #8A6D3B; --g-ic: #3E5F8A; --g-module: #1F6B4A; --g-board: #5B4B8A;
  --g-electromech: #8C4A4A; --g-opto: #B08A1F; --g-connector: #4A7C7C;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--mat); color: var(--ink); font: 400 17px/1.55 var(--sans); font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--label); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 3px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; margin: 0 0 14px; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
.sub { color: var(--ink2); font-size: 18px; max-width: 36em; margin: 0 0 40px; }
.mono { font-family: var(--mono); font-weight: 500; }

/* Header */
.top { background: var(--label); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--ink2); font-size: 15px; padding: 6px 0; }
.top nav a:hover { color: var(--mask); }
.lang { font: 500 13px var(--mono); text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; color: var(--ink2); }
@media (max-width: 760px) { .top nav { display: none; } .lang { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 16px; }
.btn.light { background: var(--label); color: var(--board-deep); }
.btn.light:hover { background: var(--silk); }
.btn.ghost { color: var(--silk); border: 1px solid #3F7E60; }
.btn.ghost:hover { border-color: var(--silk); }
.btn.solid { background: var(--mask); color: #fff; }
.btn.solid:hover { background: var(--board); }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* Plates (drawer labels) */
.plate { display: inline-grid; place-items: center; background: var(--label2); border-radius: 4px; font: 600 20px/1 var(--mono); letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }

/* Phone frame */
.phone { position: relative; background: #1C2126; border-radius: 38px; padding: 30px 10px 14px; width: 100%; max-width: 300px; }
.phone::before { content: ""; position: absolute; top: 11px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #0B0E10; z-index: 1; }
.phone img { border-radius: 10px; width: 100%; aspect-ratio: 412 / 892; object-fit: cover; object-position: top; background: var(--mat); }

/* Hero: a soldermask board */
.hero { background: var(--board) url("board.svg") 0 0 / 640px 420px repeat; color: var(--silk); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; margin: 0 0 22px; letter-spacing: -0.02em; color: #fff; }
.hero .lead { font-size: 20px; line-height: 1.55; color: var(--silk2); margin: 0 0 30px; max-width: 30em; }
.hero .lead b { color: #fff; font-weight: 500; }
.bench { position: relative; display: grid; place-items: center; min-height: 600px; }
.bench .phone { max-width: 290px; z-index: 1; }
.chip-part { position: absolute; display: grid; grid-template-columns: auto auto; align-items: center; gap: 10px; background: var(--label); color: var(--ink); border-radius: 6px; padding: 8px 14px 8px 8px; z-index: 2; }
.chip-part .plate { width: 92px; height: 60px; font-size: 24px; }
.chip-part small { display: block; font-size: 13px; color: var(--ink2); line-height: 1.3; }
.chip-part b { display: block; font: 600 22px/1.1 var(--mono); }
.chip-part b.cu { color: var(--copper); }
.chip-part::after { content: attr(data-ref); position: absolute; top: -22px; left: 2px; font: 500 13px var(--mono); color: var(--silk2); }
.chip-part.a { top: 70px; left: 0; }
.chip-part.b { top: 260px; right: 0; }
.chip-part.c { bottom: 70px; left: 20px; }
.chip-part.c { outline: 2px solid var(--copper-hi); outline-offset: 4px; }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .bench { min-height: 0; padding: 30px 0 10px; }
  .chip-part.a { top: 40px; left: -4px; } .chip-part.b { top: 46%; right: -4px; } .chip-part.c { bottom: 30px; left: 0; }
}
@media (max-width: 480px) {
  .chip-part { padding: 6px 10px 6px 6px; gap: 8px; }
  .chip-part .plate { width: 70px; height: 46px; font-size: 18px; }
  .chip-part b { font-size: 18px; }
  .bench .phone { max-width: 230px; }
}

/* Cabinet: who it is for */
section.block { padding: 88px 0; }
.cabinet { background: var(--cabinet); border-radius: 10px; padding: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.drawer { background: #DDE2E6; border-radius: 6px; padding: 22px 22px 26px; position: relative; display: grid; grid-template-rows: auto auto 1fr; }
.drawer .handle { width: 64px; height: 8px; border-radius: 4px; background: #9AA4AE; margin: 0 auto 18px; }
.drawer .tag { background: var(--label); border-radius: 4px; padding: 14px 16px; border-left: 5px solid var(--g-passive); }
.drawer:nth-child(2) .tag { border-left-color: var(--g-ic); }
.drawer:nth-child(3) .tag { border-left-color: var(--g-module); }
.drawer .tag p { color: var(--ink2); margin: 0; font-size: 16px; }
.mini { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: 10px; grid-column: 1 / -1; }
.mini span { background: #DDE2E6; border-radius: 6px; padding: 10px 8px 12px; display: grid; justify-items: center; gap: 8px; }
.mini span::before { content: ""; width: 34px; height: 5px; border-radius: 3px; background: #9AA4AE; }
.mini i { font: 600 15px/1 var(--mono); font-style: normal; background: var(--label); border-radius: 3px; padding: 7px 0; width: 100%; text-align: center; }
.mini i.cu { color: var(--copper); }
@media (max-width: 860px) { .cabinet { grid-template-columns: 1fr; } .mini { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Flow: sticker -> proposal -> stock */
.flow-band { background: var(--label); }
.flow { display: grid; grid-template-columns: minmax(0, 0.9fr) 56px minmax(0, 1.1fr) 56px minmax(0, 1fr); align-items: center; }
.trace { height: 4px; background: var(--copper); position: relative; }
.trace::before, .trace::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--label); border: 3px solid var(--copper); }
.trace::before { left: -4px; } .trace::after { right: -4px; }
.stage figure { margin: 0; }
.stage img { border-radius: 6px; border: 1px solid var(--line); width: 100%; }
.stage figcaption { margin-top: 14px; font-size: 16px; color: var(--ink2); }
.stage figcaption b { display: block; color: var(--ink); font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.sticker { background: #E8D9B5; border-radius: 4px; padding: 20px 20px 16px; transform: rotate(-2deg); color: #3B3225; margin: 10px 8px 18px; }
.sticker .t { font: 600 15px var(--mono); border-bottom: 1.5px solid #3B3225; padding-bottom: 8px; margin-bottom: 10px; }
.sticker ul { list-style: none; margin: 0; padding: 0; font: 500 16px/1.75 var(--mono); }
.sticker li span { color: #7A6A4F; }
.tryby { border-radius: 6px; border: 1px solid var(--line); background: var(--mat); }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .trace { width: 4px; height: 48px; margin: 6px auto; }
  .trace::before { left: 50%; top: -4px; margin: 0 0 0 -7px; } .trace::after { left: 50%; top: auto; bottom: -4px; margin: 0 0 0 -7px; }
}

/* Phones row */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.phones figure { margin: 0; display: grid; justify-items: center; }
.phones figure:nth-child(2) { margin-top: 48px; }
.phones figcaption { margin-top: 18px; max-width: 290px; color: var(--ink2); font-size: 16px; }
.phones figcaption b { display: block; color: var(--ink); font-size: 18px; font-weight: 600; }
@media (max-width: 900px) {
  .phones { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; gap: 20px; }
  .phones figure { scroll-snap-align: center; }
  .phones figure:nth-child(2) { margin-top: 0; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 40px; }
.feat { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; }
.feat .plate { width: 72px; height: 52px; font-size: 17px; background: var(--label); }
.feat .plate.cu { color: var(--copper); }
.feat p { color: var(--ink2); margin: 0; font-size: 16px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* Browser frame */
.desk { background: var(--label); }
.browser { border-radius: 10px; background: #D9DEE2; padding: 0 0 0; overflow: hidden; border: 1px solid var(--line); }
.browser .bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #B9C1C8; }
.browser .bar span { margin-left: 12px; flex: 1; max-width: 340px; height: 22px; border-radius: 4px; background: #F3F5F7; font: 500 12px/22px var(--mono); color: var(--ink2); padding: 0 10px; overflow: hidden; white-space: nowrap; }
.browser img { width: 100%; }
.desk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 56px; align-items: center; }
.desk-grid .browser { max-height: 620px; }
.desk-grid .browser img { object-fit: cover; object-position: top; }
@media (max-width: 860px) { .desk-grid { grid-template-columns: 1fr; } }
.pull { display: grid; gap: 14px; }
.pull img { border-radius: 6px; border: 1px solid var(--line); max-width: 460px; }

/* MCP console */
.console-band { background: var(--board-deep); color: var(--silk); }
.console-band h2 { color: #fff; }
.console-band .sub, .console-band p { color: var(--silk2); }
.mcp { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .mcp { grid-template-columns: 1fr; gap: 32px; } }
.clients { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; padding: 0; list-style: none; }
.clients li { font-size: 15px; border: 1px solid #2F6A4E; border-radius: 6px; padding: 6px 12px; color: var(--silk); }
.tools { font: 500 14px/2 var(--mono); color: var(--copper-hi); margin: 18px 0 0; padding: 0; list-style: none; columns: 2; }
.console { background: #08261A; border: 1px solid #23573F; border-radius: 10px; overflow: hidden; }
.console .bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #1D4A35; }
.console .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2B5E46; }
.console .body { padding: 22px 22px 26px; display: grid; gap: 14px; font-size: 16px; }
.console .you { color: #fff; }
.console .you::before { content: "› "; color: var(--copper-hi); font-family: var(--mono); }
.console .call { font: 500 13.5px/1.5 var(--mono); color: var(--copper-hi); padding-left: 14px; border-left: 2px solid var(--copper); overflow-wrap: anywhere; }
.console .ai { color: var(--silk2); }
.console .ai ul { margin: 6px 0; padding-left: 18px; }
.console .ai .cu { color: var(--copper-hi); font-family: var(--mono); }

/* Principles: silkscreen footprints on the board */
.rules-band { background: var(--board) url("board.svg") 200px 120px / 640px 420px repeat; color: var(--silk); }
.rules-band h2 { color: #fff; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.rule { border: 1.5px solid rgba(238, 243, 239, 0.55); border-radius: 4px; padding: 30px 24px 24px; position: relative; background: rgba(19, 77, 53, 0.82); }
.rule::before { content: ""; position: absolute; top: 10px; left: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--silk); }
.rule .ref { position: absolute; top: -26px; left: 0; font: 500 14px var(--mono); color: var(--silk2); }
.rule h3 { color: #fff; }
.rule p { color: var(--silk2); margin: 0; font-size: 16px; }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; gap: 44px; } }

/* Contact */
.get { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; background: var(--label); border-radius: 10px; padding: 40px; border-left: 6px solid var(--mask); }
.get p { color: var(--ink2); margin: 0; }
@media (max-width: 760px) { .get { grid-template-columns: 1fr; padding: 28px 22px; } }

footer { padding: 36px 0 48px; color: var(--ink2); font-size: 15px; }
footer .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
footer a:hover { color: var(--mask); }
.two71 { font-weight: 600; }
.desk-grid > *, .flow > *, .mcp > *, .hero .wrap > * { min-width: 0; }
.browser .bar span { min-width: 0; }
.pull > * { min-width: 0; } .pull img { width: 100%; }
