/* BitBuilder — shared styles. No build step or external CSS dependencies. */

/* Self-hosted variable fonts (SIL OFL 1.1; licences alongside in /assets/fonts/). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-wght.woff2') format('woff2');
}

:root {
  --bg: #111314;
  --green: #A9CFB4;
  --board: #284D3B;
  --silver: #CDD3CF;
  --surface: #232627;
  --surface-raised: #2a2a2e;
  --text: #f2f2f0;
  --muted: #A2AAA6;
  --gold: #e0b050;
  --gold-light: #f0c870;
  --border: #303735;
  --mono: 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --sans: 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

button,a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
}

button,a,summary {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gold-light);
}

img,svg {
  max-width: 100%;
}

img {
  display: block;
}

button:focus-visible,a:focus-visible,summary:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 6px;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

h1,h2,h3,p {
  margin: 0;
}

h1,h2,h3 {
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 650;
}

h2 {
  font-size: clamp(32px,4vw,48px);
}

h3 {
  font-size: 21px;
  letter-spacing: -.025em;
}

p {
  color: var(--muted);
}

.container {
  width: min(1120px,calc(100% - 80px));
  margin-inline: auto;
}

.section {
  padding-block: 112px;
}

.mono,.eyebrow {
  font: 400 11px/1.6 var(--mono);
  letter-spacing: .1em;
}

.eyebrow {
  color: var(--green);
  margin-bottom: 22px;
}

.muted {
  color: var(--muted);
}

.line-icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  vertical-align: middle;
}

.section-heading {
  text-align: center;
  margin-bottom: 62px;
}

.section-heading>p:last-child:not(.eyebrow) {
  margin-top: 20px;
}

.mobile-break {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 100;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 20px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 21px;
  border: 1px solid var(--gold);
  border-radius: 9px;
  background: var(--gold);
  color: #18140c;
  font-size: 14px;
  font-weight: 600;
  min-height: 48px;
}

.button:hover {
  background: var(--gold-light);
  color: #18140c;
}

.button .line-icon {
  width: 18px;
  height: 18px;
}

/* Header remains readable without JavaScript; JS enables the compact menu. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(20 23 24 / .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid #3C44404D;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 86px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  font-size: 21px;
  letter-spacing: -.7px;
  color: var(--text);
}

.brand img {
  border-radius: 9px;
  box-shadow: 0 0 0 1px #B3C4BA26;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  font-weight: 500;
}

.site-header nav>a {
  padding-block: 14px;
  color: #b7b7bb;
}

.site-header nav>a:hover {
  color: var(--text);
}

.site-header nav>a.nav-cta {
  padding: 8px 16px;
  border: 1px solid #8A7338;
  border-radius: 30px;
  background: #2A2416;
  color: var(--gold-light);
}

.site-header nav>a.nav-cta:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.menu-toggle {
  display: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 44px;
}

/* Hero and the real, interactive logic circuit. */
.hero {
  position: relative;
  padding: 76px 0 0;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0 0 80px;
  z-index: -1;
  background-image: radial-gradient(circle,#AFC0B342 1px,transparent 1.2px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom,#0008,#000 40%,transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom,#0008,#000 40%,transparent 95%);
}

.hero-content {
  text-align: center;
}

.hero-eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #b4b4ba;
  letter-spacing: .16em;
  margin-bottom: 27px;
}

.tiny-chip {
  color: var(--green);
}

.tiny-chip .line-icon {
  width: 18px;
  height: 18px;
}

.hero h1 {
  font-size: clamp(44px,5.7vw,76px);
  line-height: 1.08;
  letter-spacing: -.055em;
  font-weight: 650;
}

.hero h1>span {
  color: var(--green);
}

.hero-description {
  max-width: 650px;
  margin: 25px auto 0;
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 34px auto 48px;
}

.store-links {
  font-size: 14px;
  line-height: 1.6;
}

.store-links a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: #F2F2F055;
  text-underline-offset: 4px;
}

.store-links a:hover {
  color: var(--gold-light);
  text-decoration-color: currentColor;
}

.circuit-panel {
  max-width: 996px;
  margin: auto;
  border: 1px solid #59625D;
  border-radius: 20px;
  text-align: left;
  background: #1B1E1F;
  box-shadow: 0 24px 80px #0005, inset 0 1px 0 #DCE8DE12;
  overflow: hidden;
}

.panel-heading,.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px 25px;
}

.panel-heading {
  border-bottom: 1px solid #434A464D;
  background: #242829;
}

.panel-heading .mono {
  letter-spacing: .08em;
  color: #b7b7bc;
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-dot {
  height: 5px;
  width: 5px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px #e0b05040;
}

.panel-heading .demo-hint {
  color: var(--muted);
}

.demo-body {
  display: grid;
  grid-template-columns: minmax(0,1fr) 172px;
  align-items: center;
  padding: 25px 25px 22px 18px;
  background-image: radial-gradient(circle,#C4D1C447 1px,transparent 1.2px);
  background-size: 26px 26px;
}

.circuit-workspace {
  min-width: 0;
}

.gate-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 4px;
  border: 1px solid #657068;
  background: #292D2E;
  border-radius: 14px;
  box-shadow: 0 5px 14px #0003;
}

.gate-picker button {
  color: #CBD1CD;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font: 11px var(--mono);
  padding: 9px 15px;
  min-height: 36px;
}

.gate-picker button:hover {
  color: var(--text);
  background: #222225;
}

.gate-picker button[aria-pressed=true] {
  background: #385341;
  color: #E2EFE5;
  box-shadow: inset 0 0 0 1px #8CAE9770;
}

.gate-picker .picker-divider {
  width: 1px;
  align-self: stretch;
  margin: 6px 4px;
  background: #657068;
}

.circuit-canvas {
  position: relative;
  aspect-ratio: 680/260;
  margin-top: 17px;
}

.circuit-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

/* The workbench visual language: green substrate, silver sockets, charcoal parts. */
.demo-board {
  fill: var(--board);
  stroke: #A3BAAA;
  stroke-width: 1.5;
}

.board-mounts circle {
  fill: #16271E;
  stroke: #759981;
  stroke-width: 1;
}

.component-case {
  fill: #242729;
  stroke: #CCD5CF;
  stroke-width: 1.5;
}

.chip-case {
  fill: #1E3328;
  stroke: #A3BAAA;
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}

.wire {
  stroke: #CDD3CF;
  stroke-width: 2.5;
  fill: none;
}

.wire-set.high .wire {
  stroke: var(--gold);
  filter: drop-shadow(0 0 4px #e0b05045);
}

.pulse {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 3;
  stroke-dasharray: 7 210;
  opacity: 0;
}

.high .pulse {
  opacity: .85;
  animation: signal-flow 3s linear infinite;
}

.junction {
  fill: #CDD3CF;
}

.high .junction {
  fill: var(--gold);
}

.gate-shape {
  fill: #242729;
  stroke: #E0E4E1;
  stroke-width: 2.5;
}

.gate-detail {
  fill: none;
  stroke: #E0E4E1;
  stroke-width: 2.5;
}

.circuit-svg text {
  font: 12px var(--mono);
  fill: #c8c8cd;
}

.circuit-svg .svg-label {
  font-size: 12px;
  letter-spacing: 1px;
  fill: #DAE6DD;
}

.terminal {
  fill: #242729;
  stroke: #D4DDD7;
  stroke-width: 2;
}

.high-terminal {
  fill: var(--gold);
}

.led-halo {
  fill: transparent;
}

.led-ring {
  fill: #242729;
  stroke: #BEC9C2;
  stroke-width: 1.5;
}

.led-core {
  fill: #414147;
}

.is-on .led-halo {
  fill: #e0b05024;
  filter: url(#gold-glow);
}

.is-on .led-ring {
  stroke: var(--gold);
  fill: #30271a;
}

.is-on .led-core {
  fill: var(--gold-light);
  filter: drop-shadow(0 0 9px #e0b05090);
}

.input-switch {
  position: absolute;
  left: 5.9%;
  width: 13.3%;
  height: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1.5px solid #CED7D1;
  background: #242729;
  border-radius: 8px;
  color: #E0E6E2;
  font: 12px var(--mono);
  box-shadow: 0 3px 6px #0003;
}

.input-a {
  top: 17%;
}

.input-b {
  top: 63%;
}

.input-switch.is-high {
  border-color: #D9DCD1;
  color: var(--gold-light);
}

/* NOT has one input: B stays in place but reads as unused. */
.input-switch:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.input-name {
  position: absolute;
  left: -21px;
  font-size: 11px;
  color: #E0ECE3;
}

.switch-symbol {
  width: 32px;
  height: 25px;
  overflow: visible;
  fill: #242729;
  stroke: #DDE4DF;
  stroke-width: 2.5;
  flex-shrink: 0;
}

.switch-arm {
  transform-origin: 6px 20px;
  transition: transform .18s ease;
  stroke-linecap: round;
}

.is-high .switch-arm {
  transform: rotate(30deg);
  stroke: var(--gold-light);
}

.is-high .switch-symbol circle:last-of-type {
  fill: var(--gold);
  stroke: var(--gold-light);
}

.truth-panel {
  background: #222627;
  border: 1px solid #4E57514D;
  border-radius: 12px;
  padding: 14px;
  margin-left: 10px;
}

.truth-table {
  border-collapse: separate;
  border-spacing: 0 4px;
  font: 11px/1.7 var(--mono);
  width: 100%;
  text-align: center;
  color: #BCC6BF;
}

.truth-table caption {
  text-align: left;
  font-size: 11px;
  letter-spacing: .1em;
  padding-bottom: 12px;
}

.truth-table th {
  font-weight: 400;
  padding: 4px 6px 7px;
  border-bottom: 1px solid #ffffff10;
}

.truth-table td {
  padding: 5px 6px;
}

.truth-table .current td {
  background: #354D3D;
  color: #E2EEE5;
}

.truth-table .current td:first-child {
  border-radius: 4px 0 0 4px;
}

.truth-table .current td:last-child {
  border-radius: 0 4px 4px 0;
}

.panel-footer {
  padding-block: 13px;
  border-top: 1px solid #434A464D;
  color: var(--muted);
  font-size: 12px;
  background: #202425;
}

.signal-key {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 11px var(--mono);
  letter-spacing: .06em;
}

.signal-key i {
  width: 5px;
  height: 5px;
  background: #6a6a70;
  border-radius: 50%;
  margin-left: 9px;
}

.signal-key .gold {
  background: var(--gold);
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 33px;
}

.explore-link span {
  color: var(--gold);
  font-size: 18px;
}

.noscript-note {
  font-size: 12px;
  padding: 12px 24px;
}

/* From one gate to a computer. */
.journey {
  padding-top: 115px;
  border-bottom: 1px solid var(--border);
}

.progression {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  padding: 0;
  margin: 0;
  gap: 0;
}

.progression li {
  position: relative;
  padding: 0 22px 0 0;
  --step: 0;
}

.progression li:nth-child(2) { --step: 1; }
.progression li:nth-child(3) { --step: 2; }
.progression li:nth-child(4) { --step: 3; }
.progression li:nth-child(5) { --step: 4; }

.progression li:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 17px;
  height: 1px;
  background: #735b2c;
}

.progression li:last-child:before {
  display: none;
}

.step-node {
  display: flex;
  width: 35px;
  height: 35px;
  position: relative;
  border: 1px solid #705c32;
  border-radius: 50%;
  background: #17150f;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font: 11px var(--mono);
  margin-bottom: 25px;
}

.progression h3 {
  font-size: 16px;
  letter-spacing: -.03em;
  line-height: 1.4;
  margin-bottom: 12px;
}

.progression p {
  font-size: 13px;
  line-height: 1.8;
}

.journey-closing {
  text-align: center;
  margin-top: 48px;
  font-size: 14px;
}

.journey-closing em {
  font-style: normal;
  color: var(--text);
}

.progression.animate li:before {
  transform: scaleX(0);
  transform-origin: left;
  animation: power-on .5s forwards;
  animation-delay: calc(var(--step)*.22s);
}

.progression.animate .step-node {
  animation: node-on .5s both;
  animation-delay: calc(var(--step)*.22s);
}

/* Built to teach. */
.learn {
  border-bottom: 1px solid var(--border);
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}

.learn-card {
  border: 1px solid #3B4640;
  border-radius: 15px;
  background: #1B2020;
  padding: 26px 22px;
}

.learn-card .line-icon {
  color: var(--green);
  margin-bottom: 18px;
}

.learn-card h3 {
  font-size: 16px;
  letter-spacing: -.02em;
  line-height: 1.4;
  margin-bottom: 10px;
}

.learn-card p {
  font-size: 13px;
  line-height: 1.8;
}

/* Features. Device frames expose useful filenames until screenshots arrive. */
.features {
  padding-top: 30px;
}

.feature-row {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 95px;
  padding: 82px 0;
}

.feature-row.reverse {
  grid-template-columns: 1.15fr .85fr;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-row.reverse .feature-visual {
  order: 1;
}

.feature-copy h2 {
  margin-bottom: 25px;
}

.feature-copy>p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.85;
}

.feature-copy>p+p {
  margin-top: 18px;
}

.pro-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px solid #8A7338;
  border-radius: 20px;
  background: #2A2416;
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: .1em;
}

.feature-points {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 11px;
}

.feature-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: #BEC6C1;
}

.feature-points li:before {
  content: '';
  position: absolute;
  left: 2px;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: #2A2416;
}

.feature-copy .feature-note {
  margin-top: 22px;
  font-size: 13px;
}

.feature-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.feature-visual {
  min-width: 0;
}

.screenshot-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.screenshot-toolbar>.mono {
  color: #AFBDB3;
  letter-spacing: .06em;
}

.appearance-picker:not([hidden]) {
  display: flex;
  border: 1px solid #58625B;
  border-radius: 12px;
  background: #242829;
  padding: 3px;
  gap: 2px;
}

.appearance-picker button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #BDC7C0;
  padding: 6px 12px;
  min-height: 36px;
  font-size: 12px;
}

.appearance-picker button[aria-pressed="true"] {
  background: #385341;
  color: #E2EFE5;
}

.device-frame {
  position: relative;
  padding: 9px;
  border: 1px solid #858E88;
  border-radius: 22px;
  background: #242829;
  box-shadow: 0 20px 45px #0005,0 0 0 3px #363D38;
  overflow: hidden;
}

.device-frame.ipad:after,.device-frame.android:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 3px;
  background: #4c4c52;
  width: 3px;
  height: 3px;
  border-radius: 50%;
}

.screen {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 13px;
  overflow: hidden;
  background: #19191b;
}

.screen-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background-image: radial-gradient(circle,#A7C8B240 1px,transparent 1.4px);
  background-size: 18px 18px;
  color: #BDCCC2;
  font: 11px/1.6 var(--mono);
  text-align: center;
  padding: 15px;
  overflow-wrap: anywhere;
  background-color: #1C2922;
}

.screen-placeholder .line-icon {
  color: var(--green);
  width: 33px;
  height: 33px;
  margin-bottom: 8px;
}

.screen-placeholder span:last-child {
  color: #A9B9AF;
}

.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  background: #171719;
}

.screen img.loaded {
  opacity: 1;
}

.screen img[hidden] {
  display: none;
}

/* Hide the fallback label from assistive technology once a real image loads. */
.screen:has(img.loaded) .screen-placeholder {
  visibility: hidden;
}

.device-frame.mac,.device-frame.browser {
  padding: 0;
  border-radius: 12px;
}

.mac .screen,.browser .screen,.android .screen {
  aspect-ratio: 16/10;
}

.mac .screen,.browser .screen {
  border-radius: 0 0 10px 10px;
}

/* Decorative window chrome inside the device mock-ups; hidden from assistive technology. */
.window-bar {
  height: 29px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  background: #27272a;
  color: #a1a1a7;
  font: 8px var(--mono);
  gap: 9px;
}

.window-bar>span:first-child {
  letter-spacing: 3px;
  color: #8b8b91;
}

.window-bar .address {
  border: 1px solid #ffffff0b;
  background: #202023;
  border-radius: 3px;
  padding: 2px 20px;
}

.abstract {
  padding-block: 110px;
}

.abstract .feature-copy h2 {
  font-size: clamp(38px,4.4vw,58px);
}

.abstraction-chain {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: .02em;
}

.abstraction-chain span {
  padding: 6px 9px;
  border: 1px solid #6D8D78;
  border-radius: 4px;
  color: #D0E5D6;
  background: #233A2C;
}

.abstraction-chain b {
  color: var(--gold);
  font-weight: 400;
}

.everywhere {
  padding-top: 85px;
}

.everywhere .section-heading {
  margin-bottom: 50px;
}

.device-fan {
  height: 430px;
  max-width: 950px;
  margin: 0 auto;
  position: relative;
}

.device-fan .device-frame {
  position: absolute;
  width: 54%;
}

.device-fan .mac {
  left: 8%;
  top: 5%;
  transform: rotate(-6deg);
}

.device-fan .browser {
  right: 4%;
  top: 0;
  transform: rotate(6deg);
}

.device-fan .android {
  right: 0;
  top: 36%;
  width: 46%;
  transform: rotate(5deg);
  z-index: 2;
}

.device-fan .ipad {
  left: 6%;
  top: 28%;
  width: 48%;
  transform: rotate(-5deg);
  z-index: 3;
}

.device-labels {
  display: flex;
  justify-content: center;
  gap: 32px;
  color: var(--muted);
  font-size: 11px;
  margin: 35px 0 64px;
}

.device-labels span+span:before {
  content: '·';
  margin-right: 32px;
  color: var(--gold);
}

.parts {
  padding: 40px 0 70px;
}

.parts .section-heading {
  margin-bottom: 44px;
}

/* The parts bin: each category sits on its own board, drawn like the workbench. */
.parts-bin {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.parts-board {
  --n: 3;
  flex: var(--n) 1 calc(var(--n) * 74px + 38px);
  position: relative;
  padding: 16px 18px 18px;
  border: 1px solid #56745F;
  border-radius: 14px;
  background-color: #1C3025;
  background-image: radial-gradient(circle,#94B6A038 1.2px,transparent 1.6px);
  background-size: 20px 20px;
  background-position: 10px 10px;
  box-shadow: inset 0 1px 0 #DCE8DE14;
}

.parts-board[data-n="5"] { --n: 5; }
.parts-board[data-n="6"] { --n: 6; }
.parts-board[data-n="7"] { --n: 7; }
.parts-board[data-n="8"] { --n: 8; }

.parts-board h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.parts-board h3 span {
  color: #9DB8A6;
}

.parts-board ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
}

.parts-board li {
  width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  color: #DAE6DD;
}

.parts-board li svg {
  width: 64px;
  height: 48px;
  overflow: visible;
  transition: transform .18s ease;
}

.parts-board li:hover svg {
  transform: translateY(-2px);
}

.pt-case {
  fill: #242729;
  stroke: #CCD5CF;
  stroke-width: 1.5;
  transition: stroke .18s ease;
}

.parts-board li:hover .pt-case,.parts-board li:hover .pt-gate,.parts-board li:hover .pt-chip {
  stroke: var(--gold-light);
}

.pt-chip {
  fill: #1E3328;
  stroke: #A3BAAA;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

.pt-gate {
  fill: #242729;
  stroke: #E0E4E1;
  stroke-width: 2;
  transition: stroke .18s ease;
}

.pt-gate-line,.pt-detail {
  fill: none;
  stroke: #E0E4E1;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.pt-wire {
  fill: none;
  stroke: #CDD3CF;
  stroke-width: 1.5;
}

.pt-pin {
  fill: #242729;
  stroke: #D4DDD7;
  stroke-width: 1.2;
}

.pt-code {
  font: 500 10px var(--mono);
  letter-spacing: .04em;
  fill: #E0E6E2;
}

.pt-code.lit {
  fill: var(--gold-light);
}

.pt-code.big {
  font-size: 15px;
}

.pt-code.small {
  font-size: 9px;
}

.pt-code.tiny {
  font-size: 8.5px;
  letter-spacing: 0;
}

.pt-lit-stroke {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pt-lit-fill {
  fill: var(--gold);
}

.pt-seg {
  fill: none;
  stroke: #3F4644;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.pt-seg.lit {
  stroke: var(--gold-light);
  filter: drop-shadow(0 0 3px #e0b05080);
}

.pt-led-halo {
  fill: #e0b05022;
  animation: led-breathe 3s ease-in-out infinite;
}

.pt-led-core {
  fill: var(--gold-light);
  filter: drop-shadow(0 0 6px #e0b050a0);
}

@keyframes led-breathe {
  50% {
    fill: #e0b0500a;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  padding-bottom: 105px;
}

.feature-tile {
  border: 1px solid #3B4640;
  border-radius: 15px;
  background: #1B2020;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #c7c7cc;
}

.feature-tile .line-icon {
  color: var(--green);
  width: 21px;
  height: 21px;
}

/* Plans, FAQ and maker note. */
.pro-section {
  background: #171B19;
  border-block: 1px solid #48534B4D;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 850px;
  margin: auto;
  align-items: start;
}

.pricing-card {
  border: 1px solid #48534D;
  border-radius: 18px;
  padding: 32px 34px;
  min-height: 315px;
  background: #202525;
}

.plan-label {
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 24px;
}

.plan-label .line-icon {
  width: 19px;
  height: 19px;
}

.pricing-card h3 {
  font-size: 30px;
  margin: 14px 0 28px;
}

.pricing-card .price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: -14px 0 28px;
}

.pricing-card .price strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
}

.pricing-card .price span {
  font: 11px var(--mono);
  letter-spacing: .08em;
  color: #BDDEC8;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.pricing-card li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  line-height: 1.5;
  color: #c5c5c9;
}

.pricing-card li .line-icon {
  width: 17px;
  height: 17px;
  color: #a4a4ab;
}

.pro-card {
  border-color: #8CAE96;
  background: #203A2B;
  box-shadow: 0 0 45px #6099730B, inset 0 1px 0 #DCE8DE20;
}

.pro-card .plan-label,.pro-card li .line-icon {
  color: #BDDEC8;
}

.pro-card h3 span {
  color: var(--green);
}

.purchase-notes {
  padding: 23px 3px 0;
}

.purchase-notes p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.65;
}

.purchase-notes p+p {
  margin-top: 9px;
}

.purchase-notes strong {
  font-weight: 500;
  color: var(--text);
}

.purchase-notes .line-icon {
  color: var(--gold);
  width: 17px;
  height: 19px;
}

.purchase-notes .price-note {
  display: block;
  padding-left: 27px;
  font-size: 12px;
}

.faq-section {
  max-width: 800px;
}

.faq-section .section-heading {
  margin-bottom: 40px;
}

.faq-list details {
  border-bottom: 1px solid #2a2a2d;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  padding: 23px 0;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  width: 13px;
  height: 13px;
  position: relative;
  flex-shrink: 0;
}

.faq-plus:before,.faq-plus:after {
  content: '';
  position: absolute;
  background: #9a9aa0;
  left: 0;
  top: 6px;
  width: 13px;
  height: 1px;
}

.faq-plus:after {
  transform: rotate(90deg);
}

details[open] .faq-plus:after {
  transform: rotate(0);
}

details[open] summary {
  color: var(--gold-light);
}

.faq-list details p {
  font-size: 15px;
  line-height: 1.85;
  max-width: 65ch;
  padding: 0 30px 24px 0;
}

.faq-list details p a,.deletion-note a,.reading p>a,.reading li>a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.maker {
  padding: 45px 0 112px;
  max-width: 650px;
  text-align: center;
}

.portrait-placeholder {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #73927C;
  background: #293C30;
  margin: 0 auto 28px;
  color: #CEE2D4;
}

.portrait-placeholder .mono {
  font-size: 13px;
  letter-spacing: .04em;
}

.maker blockquote {
  margin: 0;
}

.maker blockquote p {
  font-size: 17px;
  line-height: 1.9;
  color: #b9b6b0;
  letter-spacing: -.015em;
}

.maker blockquote p+p {
  margin-top: 20px;
}

.maker blockquote footer {
  color: var(--text);
  font-size: 14px;
  margin-top: 27px;
}

.maker blockquote footer span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.site-footer {
  border-top: 1px solid #677F6D;
  position: relative;
  padding: 44px 0 24px;
}

.site-footer:before {
  content: '';
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  background: var(--bg);
  position: absolute;
  top: -3px;
  left: calc((100% - min(1120px,100% - 80px))/2);
  border-radius: 50%;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding-bottom: 35px;
}

.site-footer .brand {
  font-size: 18px;
}

.footer-top p {
  font-size: 13px;
  margin-top: 12px;
}

.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 29px;
  font-size: 13px;
  color: #b5b5bb;
}

.footer-bottom {
  border-top: 1px solid #232326;
  padding-top: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}

/* Shared editorial and utility pages. */
.reading {
  max-width: 70ch;
}

.legal,.support-intro {
  padding-top: 90px;
  padding-bottom: 100px;
}

.legal h1,.support-intro h1 {
  font-size: clamp(42px,6vw,64px);
}

.legal-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 25px 0;
  font-size: 12px;
}

.legal-meta a {
  color: var(--gold);
  white-space: nowrap;
}

.legal-placeholder {
  border-left: 2px solid var(--gold);
  padding: 15px 20px;
  background: #201b12;
  color: #c8bfae;
  font-size: 13px;
  margin: 30px 0 40px;
}

.legal h2 {
  font-size: 27px;
  margin: 38px 0 18px;
}

.legal h3 {
  font-size: 19px;
  margin: 28px 0 15px;
}

.legal p,.legal li {
  font-size: 15px;
  line-height: 1.85;
}

.legal ul,.legal ol {
  padding-left: 22px;
  color: var(--muted);
}

.legal li+li {
  margin-top: 8px;
}

.legal li strong {
  font-weight: 500;
  color: var(--text);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 25px 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.legal th,.legal td {
  border: 1px solid var(--border);
  padding: 12px;
}

.legal th {
  background: var(--surface);
}

.legal td {
  color: var(--muted);
}

.page-lead {
  font-size: 18px;
  margin: 26px 0 30px;
}

.legal .page-lead {
  font-size: 18px;
}

.deletion-note {
  font-size: 14px;
  margin-top: 30px;
  max-width: 60ch;
}

.support-faq {
  padding-bottom: 100px;
}

.support-faq h2 {
  font-size: 32px;
  margin-bottom: 25px;
}

.error-page {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 90px;
  gap: 24px;
}

.error-page h1 {
  font-size: clamp(38px,6vw,64px);
  margin-bottom: 16px;
}

.error-page .eyebrow {
  margin-bottom: 0;
}

.off-led {
  width: 42px;
  height: 42px;
  border: 1px solid #58585e;
  box-shadow: inset 0 0 0 9px #171719;
  background: #3b3b41;
  border-radius: 50%;
  margin-bottom: 12px;
}

@keyframes signal-flow {
  to {
    stroke-dashoffset: -217;
  }
}

@keyframes power-on {
  to {
    transform: scaleX(1);
  }
}

@keyframes node-on {
  from {
    border-color: #39393d;
    color: #9a9aa0;
    background: #151517;
  }
  to {
    border-color: #a17e39;
    color: var(--gold);
    background: #231d12;
  }
}

@media(min-width:1500px) {
  .hero {
    padding-top: 95px;
  }
  .hero h1 {
    font-size: 82px;
  }
}

@media(max-width:1000px) {
  .container {
    width: calc(100% - 56px);
  }
  .site-header nav {
    gap: 24px;
  }
  .feature-row,.feature-row.reverse {
    gap: 45px;
  }
  .demo-body {
    grid-template-columns: minmax(0,1fr) 150px;
    padding-right: 22px;
  }
  .device-fan {
    height: 360px;
  }
  .input-switch {
    gap: 5px;
  }
  .progression li {
    padding-right: 14px;
  }
  .feature-tile {
    padding: 20px 15px;
    font-size: 13px;
  }
  .feature-grid {
    grid-template-columns: repeat(3,1fr);
  }
  .learn-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media(max-width:760px) {
  .container {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 72px;
  }
  .brand {
    font-size: 19px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .site-header nav {
    gap: 18px;
  }
  .hero {
    padding-top: 57px;
  }
  .hero h1 {
    font-size: clamp(39px,7.5vw,58px);
  }
  .hero-description {
    font-size: 15px;
    max-width: 550px;
  }
  .hero-actions {
    margin-bottom: 36px;
  }
  .hero-eyebrow {
    letter-spacing: .08em;
  }
  .panel-heading,.panel-footer {
    padding-inline: 18px;
  }
  .demo-body {
    grid-template-columns: 1fr;
    padding: 22px 12px 16px;
  }
  .truth-panel {
    margin: 10px 14px 0;
    padding: 12px;
  }
  .truth-table {
    max-width: 290px;
    margin: auto;
    border-spacing: 0 2px;
  }
  .truth-table caption {
    text-align: center;
    padding-bottom: 5px;
  }
  .truth-table th {
    padding: 3px 10px;
  }
  .truth-table td {
    padding: 2px 10px;
  }
  .circuit-canvas {
    max-width: 620px;
    margin-inline: auto;
  }
  .gate-picker button {
    min-height: 40px;
  }
  .section {
    padding-block: 80px;
  }
  .section-heading {
    margin-bottom: 40px;
  }
  .progression {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 430px;
    margin: auto;
  }
  .progression li {
    padding: 0 0 30px 61px;
    min-height: 96px;
  }
  .progression li:before {
    top: 0;
    bottom: 0;
    height: auto;
    left: 17px;
    width: 1px;
    right: auto;
    transform-origin: top;
  }
  .step-node {
    position: absolute;
    left: 0;
    top: 0;
  }
  .progression h3 {
    padding-top: 5px;
    margin-bottom: 7px;
    font-size: 18px;
  }
  .progression p {
    font-size: 14px;
  }
  .journey-closing {
    margin-top: 12px;
  }
  .features {
    padding-top: 10px;
  }
  .feature-row,.feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 50px;
    max-width: 560px;
    margin: auto;
  }
  .feature-row.reverse .feature-copy,.feature-row.reverse .feature-visual {
    order: initial;
  }
  .feature-copy h2 {
    margin-bottom: 19px;
  }
  .feature-copy h2 br {
    display: none;
  }
  .feature-copy .eyebrow {
    margin-bottom: 15px;
  }
  .abstract {
    padding-block: 65px;
  }
  .abstract .feature-copy h2 {
    font-size: 40px;
  }
  .feature-grid {
    grid-template-columns: repeat(2,1fr);
    padding-bottom: 70px;
  }
  .parts {
    padding-bottom: 50px;
  }
  .everywhere {
    padding-top: 60px;
  }
  .device-fan {
    height: 310px;
  }
  .device-fan .screen-placeholder {
    font-size: 7px;
    gap: 5px;
  }
  .device-fan .screen-placeholder .line-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
  }
  .device-fan .device-frame {
    padding: 5px;
    border-radius: 13px;
  }
  .device-fan .mac,.device-fan .browser {
    padding: 0;
    border-radius: 8px;
  }
  .device-fan .screen {
    border-radius: 8px;
  }
  .device-fan .window-bar {
    height: 20px;
    font-size: 5px;
    padding: 0 6px;
  }
  .window-bar .address {
    padding: 2px 6px;
  }
  .device-labels {
    margin: 20px 0 40px;
    gap: 20px;
  }
  .device-labels span+span:before {
    margin-right: 20px;
  }
  .pricing-grid {
    gap: 15px;
  }
  .pricing-card {
    padding: 26px 23px;
    min-height: 330px;
  }
  .pricing-card h3 {
    font-size: 25px;
  }
  .maker {
    padding-top: 20px;
    padding-bottom: 80px;
    max-width: 560px;
  }
  .maker blockquote p {
    font-size: 15px;
  }
  .footer-top {
    align-items: flex-start;
  }
  .legal,.support-intro {
    padding-top: 60px;
  }
  .legal-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media(max-width:480px) {
  .container {
    width: calc(100% - 36px);
  }
  .header-inner {
    gap: 12px;
    flex-wrap: wrap;
    padding-block: 14px;
  }
  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
  }
  .site-header.menu-ready .menu-toggle {
    display: block;
    font-size: 12px;
  }
  .site-header.menu-ready nav {
    display: none;
  }
  .site-header.menu-ready nav.is-open {
    display: flex;
  }
  .hero {
    padding-top: 42px;
  }
  .hero h1 {
    font-size: 39px;
    line-height: 1.13;
  }
  .hero-description {
    font-size: 15px;
    line-height: 1.8;
    margin-top: 21px;
  }
  .hero-eyebrow {
    gap: 7px;
    margin-bottom: 23px;
    letter-spacing: .04em;
  }
  .hero-eyebrow .line-icon {
    width: 15px;
  }
  .hero-actions {
    margin-top: 28px;
  }
  .circuit-panel {
    border-radius: 14px;
  }
  .panel-heading {
    padding: 13px 12px;
  }
  .panel-heading .demo-hint {
    display: none;
  }
  .demo-body {
    padding: 16px 6px 12px;
  }
  .gate-picker {
    gap: 1px;
    padding: 3px;
  }
  .gate-picker button {
    padding: 8px 11px;
    min-height: 40px;
  }
  .gate-picker .picker-divider {
    display: none;
  }
  .circuit-canvas {
    margin-block: 13px 8px;
  }
  .circuit-svg text {
    font-size: 25px;
  }
  .circuit-svg .svg-label {
    font-size: 24px;
    letter-spacing: 0;
  }
  .input-switch {
    min-height: 44px;
    width: 16%;
    left: 5%;
    border-radius: 6px;
    font-size: 11px;
    gap: 2px;
    transform: translateY(-15%);
  }
  .switch-symbol {
    width: 22px;
    height: 22px;
  }
  .input-name {
    left: -10px;
  }
  .panel-footer {
    padding: 12px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .signal-key {
    gap: 4px;
  }
  .signal-key i {
    margin-left: 4px;
  }
  .explore-link {
    margin-top: 24px;
  }
  .mobile-break {
    display: block;
  }
  .section-heading h2 {
    font-size: 32px;
  }
  .section-heading>p:last-child:not(.eyebrow) {
    font-size: 14px;
  }
  .journey {
    padding-top: 70px;
  }
  .device-frame {
    padding: 7px;
    border-radius: 17px;
  }
  .screen {
    border-radius: 10px;
  }
  .screenshot-toolbar {
    gap: 6px;
  }
  .appearance-picker button {
    padding: 6px 9px;
  }
  .feature-grid {
    gap: 8px;
  }
  .learn-grid {
    grid-template-columns: 1fr;
  }
  .parts-board {
    padding-inline: 12px;
  }
  .parts-board ul {
    display: grid;
    grid-template-columns: repeat(4,1fr);
  }
  .parts-board li {
    width: auto;
  }
  .feature-tile {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    font-size: 13px;
    line-height: 1.6;
    padding: 19px 15px;
  }
  .device-fan {
    height: 230px;
  }
  .device-fan .screen-placeholder {
    font-size: 6px;
    padding: 6px;
  }
  .device-fan .screen-placeholder .line-icon {
    display: none;
  }
  .device-fan .android {
    top: 38%;
  }
  .device-fan .ipad {
    top: 32%;
  }
  .device-labels {
    gap: 12px;
  }
  .device-labels span+span:before {
    margin-right: 12px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pricing-card {
    min-height: 0;
    padding: 27px;
  }
  .pricing-card h3 {
    font-size: 29px;
  }
  .purchase-notes {
    padding-top: 20px;
  }
  .faq-list summary {
    font-size: 14px;
    padding: 21px 0;
  }
  .faq-list details p {
    font-size: 14px;
  }
  .footer-top {
    flex-direction: column;
    gap: 25px;
  }
  .footer-top nav {
    gap: 12px 25px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .legal p,.legal li {
    font-size: 14px;
  }
  .legal h1,.support-intro h1 {
    font-size: 42px;
  }
  .button {
    font-size: 13px;
    padding: 13px 14px;
    gap: 7px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .button .line-icon {
    width: 16px;
    height: 16px;
  }
  .page-lead {
    font-size: 16px;
  }
  .support-faq h2 {
    font-size: 28px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*:before,*:after {
    animation: none!important;
    transition: none!important;
  }
  .pulse {
    display: none;
  }
  .progression.animate li:before {
    transform: none;
  }
}
