:root {
  color-scheme: light;
  --ink: #242328;
  --soft: #655f63;
  --line: #dedade;
  --panel: #f7f5f3;
  --paper: #fff;
  --brand: #aa244b;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 240px; font-size: 1rem; line-height: 1.5; }
a { color: inherit; }
button, input { font: inherit; }
button, .button, input[type="file"] { cursor: pointer; }
:focus-visible, .gp-upload:focus-within { outline: 3px solid #166e9a; outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { width: min(1120px, calc(100% - 3.5rem)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; gap: 1.1rem; min-height: 4.65rem; }
.wordmark { text-decoration: none; font-size: 1.65rem; line-height: 1; font-weight: 720; letter-spacing: -.075em; }
.wordmark span { color: var(--brand); }
.mast-label { color: var(--soft); border-left: 1px solid var(--line); padding-left: 1.1rem; font-size: .9rem; }
.main { padding-block: clamp(2rem,4.4vw,3.8rem) 3rem; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-weight: 650; letter-spacing: -.05em; }
h1 { font-size: clamp(2.15rem,4.5vw,3.65rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem,3.4vw,2.4rem); line-height: 1.12; }
.button { display: inline-flex; min-height: 46px; padding: .65rem 1.15rem; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: .6rem; font-weight: 620; font-size: .95rem; line-height: 1.35; text-align: center; }
.primary { color: #fff; background: var(--brand); }
.primary:hover, .product-card:hover .primary { background: #8e1e3e; }
.secondary { background: var(--paper); border-color: #bcb4b8; color: var(--ink); }
.secondary:hover { background: var(--panel); }
.lookup { max-width: 42rem; margin-block: 1.6rem 2rem; }
.lookup label, .range-control label, legend { display: block; font-size: .94rem; font-weight: 620; }
.search-bar { display: flex; align-items: stretch; gap: .55rem; margin-top: .5rem; }
.search-bar input { min-width: 0; flex: 1; padding: .65rem .85rem; border: 1px solid #bcb4b8; border-radius: .6rem; }
.product-card { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0,1.05fr); overflow: hidden; max-width: 52rem; border: 1px solid var(--line); border-radius: 1.1rem; text-decoration: none; }
.product-image, .gp-stage { background: radial-gradient(ellipse at 38% 30%, #faf8f4, #edeae4); }
.product-image { display: grid; place-items: center; }
.product-image img { display: block; width: 100%; max-width: 25rem; height: auto; aspect-ratio: 440 / 420; object-fit: contain; }
.card-copy { align-self: center; padding: clamp(1.45rem,4vw,3.1rem); }
.code { color: var(--soft); font-size: .85rem; font-weight: 600; }
.card-copy h2 { margin: .4rem 0 .45rem; }
.card-copy p, .product-heading p, .gp-note, .privacy, .pilot-note { color: var(--soft); }
.card-copy .button { margin-top: 1.45rem; }
.pilot-note, .status { margin-top: 1.1rem; font-size: .9rem; }
.nav-link, .product-link { text-underline-offset: .22em; color: var(--soft); font-size: .9rem; }
.product-heading { margin: .8rem 0 1.6rem; }
.product-heading p { margin-top: .35rem; }
.config-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(230px, .75fr); overflow: hidden; border-radius: 1.15rem; border: 1px solid var(--line); }
.gp-stage { position: relative; min-width: 0; height: clamp(380px, 42vw, 505px); }
.gp-stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.gp-stage canvas:active { cursor: grabbing; }
.gp-stage figcaption { position: absolute; inset: auto .5rem .68rem; text-align: center; font-size: .8rem; color: #605b55; pointer-events: none; }
.gp-tools { display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; min-width: 0; padding: clamp(1.2rem,3.1vw,2.4rem); }
.gp-upload { position: relative; width: 100%; }
.gp-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.gp-note { overflow-wrap: anywhere; margin-top: .43rem; font-size: .81rem; }
fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
legend { padding: 0; margin-bottom: .48rem; }
.gp-sides { display: flex; background: var(--panel); padding: 3px; border-radius: .6rem; gap: .2rem; }
.gp-sides button { flex: 1; min-height: 44px; border: 0; border-radius: .45rem; color: var(--soft); background: transparent; }
.gp-sides button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 5px #312c3226; }
.range-control label { display: flex; justify-content: space-between; gap: 1rem; }
output { color: var(--soft); font-weight: 450; font-variant-numeric: tabular-nums; }
input[type="range"] { display: block; width: 100%; min-height: 24px; accent-color: var(--brand); margin: .22rem 0 0; }
.privacy { font-size: .85rem; }
.product-link { display: inline-block; margin-top: 1.1rem; }
@media (max-width: 620px) {
  .shell { width: calc(100% - 2rem); }
  .masthead { min-height: 3.8rem; }
  .main { padding-block: 1.65rem 2rem; }
  .product-card, .config-layout { grid-template-columns: 1fr; }
  .product-image img { max-height: 220px; }
  .gp-stage { height: clamp(270px,75vw,360px); }
  .gp-tools { padding: 1.15rem; gap: 1.2rem; }
  .search-bar .button { padding-inline: .85rem; }
  .product-heading { margin-bottom: 1.15rem; }
}
