/* Product registration — same language as Contact / Projects */
html { scroll-behavior: smooth; scroll-padding-top: 84px }
body { background: #050505; color: #fff; font-family: Manrope, Arial, sans-serif; overflow-x: hidden }
.container-x { width: min(1360px, calc(100% - 96px)); margin: 0 auto }
@media (max-width: 1279px) { .container-x { width: calc(100% - 56px) } }
@media (max-width: 767px) { .container-x { width: calc(100% - 40px) } }
.mono { font-family: "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase }
.section { padding: 88px 0 }
@media (max-width: 767px) { .section { padding: 60px 0 } }
.h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.035em }
.h2 { font-size: clamp(27px, 2.8vw, 38px); line-height: 1.16; letter-spacing: -.03em }
.grid-bg {
  background-image: linear-gradient(rgba(36, 36, 36, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 36, 36, .5) 1px, transparent 1px);
  background-size: 48px 48px
}
.cross { position: absolute; width: 17px; height: 17px; opacity: .55; pointer-events: none }
.cross:before, .cross:after { content: ""; position: absolute; background: #666 }
.cross:before { width: 17px; height: 1px; top: 8px; left: 0 }
.cross:after { width: 1px; height: 17px; left: 8px; top: 0 }
.corners { position: relative }
.corners:before, .corners:after { content: ""; position: absolute; width: 12px; height: 12px; border-color: #666; pointer-events: none }
.corners:before { left: -1px; top: -1px; border-left: 1px solid; border-top: 1px solid }
.corners:after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid }
.ruler {
  height: 6px;
  background-image: repeating-linear-gradient(90deg, #383838 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, #666 0 1px, transparent 1px 50px);
  background-size: auto 4px, auto 6px;
  background-repeat: repeat-x;
  background-position: bottom
}
*:focus-visible { outline: 1px solid #C6FF00; outline-offset: 2px }

.tree-stem { width: 1px; height: 18px; background: #555; margin: 0 auto }
.tree-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; position: relative; padding-top: 18px }
.tree-row:before { content: ""; position: absolute; top: 0; height: 1px; background: #555; left: calc((100% - 16px) / 4); right: calc((100% - 16px) / 4) }
.tree-row > * { position: relative }
.tree-row > *:before { content: ""; position: absolute; top: -18px; left: 50%; width: 1px; height: 18px; background: #555 }
.tree-row > *:after { content: ""; position: absolute; bottom: -18px; left: 50%; width: 1px; height: 18px; background: #555 }
.tree-join { position: relative; height: 18px }
.tree-join:before { content: ""; position: absolute; bottom: 0; height: 1px; background: #555; left: calc((100% - 16px) / 4); right: calc((100% - 16px) / 4) }

.field {
  width: 100%;
  background: #050505;
  border: 1px solid #242424;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 2px;
  font-family: inherit
}
.field::placeholder { color: #666 }
.field:focus { outline: none; border-color: #C6FF00 }
.field[aria-invalid="true"] { border-color: #F87171 }
textarea.field { min-height: 120px; resize: vertical }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 36px }

.prj-pick {
  border: 1px solid #242424;
  background: #0B0B0B;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  color: inherit;
  width: 100%;
  padding: 14px 16px;
  font: inherit
}
.prj-pick:hover { border-color: #383838 }
.prj-pick[aria-pressed="true"] {
  border-color: #C6FF00;
  box-shadow: inset 2px 0 0 #C6FF00
}
.prj-pick[aria-pressed="true"] .prj-pick-code { color: #C6FF00 }

.desktop-nav-sm { display: none }
@media (max-width: 1179px) {
  .desktop-nav { display: none !important }
  .desktop-nav-sm { display: flex !important }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *:before, *:after { transition: none !important; animation: none !important }
}
