/* ================================================================
   OMNIVAL BUILDS — dark theme layer
   Loads AFTER style.css and overrides it for the /builds page only.
================================================================ */
:root {
  --b-purple: #5514A4;
  --b-purple-hover: #6A1CCB;
  --b-violet: #7C3AED;
  --b-accent: #A855F7;
  --b-bg: #08060D;
  --b-bg-alt: #0D0916;
  --b-surface: #120C1F;
  --b-surface-2: #170F28;
  --b-line: rgba(168, 85, 247, 0.18);
  --b-line-soft: rgba(255, 255, 255, 0.08);
  --b-text: #FFFFFF;
  --b-text-muted: #A6A0B5;
  --b-radius: 14px;
  --b-radius-lg: 20px;
}

.builds-page {
  background: var(--b-bg);
  color: var(--b-text);
}

/* Longhand on purpose: several elements carry .container plus their own class
   and set their own vertical padding — the shorthand would wipe it out. */
.builds-page .container {
  max-width: 1240px;
  padding-left: 28px;
  padding-right: 28px;
}

/* ================================================================
   SECTION HEADINGS
================================================================ */
.b-eyebrow {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--b-accent);
  margin-bottom: 14px;
}

.b-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 700;
  color: var(--b-text);
  line-height: 1.25;
  margin-bottom: 40px;
}

.b-title .accent {
  color: var(--b-accent);
}

.b-section {
  padding: 72px 0;
}

.b-section--tight {
  padding: 48px 0 72px;
}

/* ================================================================
   BUTTONS
================================================================ */
.btn-purple {
  background: var(--b-purple);
  color: #FFFFFF;
  border-color: var(--b-purple);
  border-radius: var(--radius);
}

.btn-purple:hover {
  background: var(--b-purple-hover);
  border-color: var(--b-purple-hover);
}

.btn-ghost-white {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.btn-ghost-purple {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(168, 85, 247, 0.45);
  border-radius: var(--radius);
}

.btn-ghost-purple:hover {
  background: rgba(85, 20, 164, 0.28);
  border-color: var(--b-accent);
}

.btn-lg {
  padding: 13px 28px;
  font-size: 15px;
}

/* ================================================================
   HEADER — same shape as the main site, dark palette
================================================================ */
.builds-page .site-header {
  background: rgba(8, 6, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--b-line-soft);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.builds-page .header-inner {
  height: 72px;
}

.builds-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.builds-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.builds-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 17px;
}

.builds-logo-text .lt-1 { color: #FFFFFF; }
.builds-logo-text .lt-2 { color: var(--b-accent); }

.builds-page .header-right {
  gap: 12px;
}

.builds-nav-btn {
  padding: 9px 20px;
  font-size: 14px;
}

/* Minimal "back to the main site" link */
.back-to-site {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--b-text-muted);
  padding: 8px 4px 8px 14px;
  margin-left: 6px;
  border-left: 1px solid var(--b-line-soft);
  transition: color var(--transition);
  white-space: nowrap;
}

.back-to-site svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.back-to-site:hover {
  color: #FFFFFF;
}

.back-to-site:hover svg {
  transform: translateX(-3px);
}

/* ================================================================
   HERO
================================================================ */
.b-hero {
  position: relative;
  overflow: hidden;
  background: var(--b-bg);
  min-height: 540px;
  display: flex;
  align-items: center;
}

.b-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.b-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

/* Placeholder used until the real hero render is dropped in */
.b-hero-media .b-ph {
  height: 100%;
}

.b-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--b-bg) 8%, rgba(8, 6, 13, 0.86) 42%, rgba(8, 6, 13, 0.25) 72%, rgba(8, 6, 13, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 6, 13, 0.55) 0%, transparent 30%, var(--b-bg) 100%);
}

.b-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 96px 0;
}

.b-hero-content h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  max-width: 640px;
  margin-bottom: 20px;
}

.b-hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 32px;
}

.b-hero-sub .accent {
  color: var(--b-accent);
  font-weight: 600;
}

.b-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ================================================================
   USE-CASE TILES (display only — hover effect, not clickable)
================================================================ */
.b-usecase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.b-usecase {
  position: relative;
  border-radius: var(--b-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  border: 1px solid var(--b-line-soft);
  background: var(--b-surface);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.b-usecase img,
.b-usecase .b-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter var(--transition);
}

.b-usecase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 6, 13, 0.1) 30%, rgba(8, 6, 13, 0.88) 100%);
  transition: background var(--transition);
}

.b-usecase span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

.b-usecase:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 12px 34px rgba(85, 20, 164, 0.35);
}

.b-usecase:hover img,
.b-usecase:hover .b-ph {
  transform: scale(1.07);
}

/* ================================================================
   CUSTOM PC BANNER
================================================================ */
.b-custom-banner {
  display: grid;
  grid-template-columns: 340px 1fr auto;
  align-items: center;
  gap: 36px;
  border-radius: var(--b-radius-lg);
  overflow: hidden;
  border: 1px solid var(--b-line);
  background:
    linear-gradient(100deg, rgba(85, 20, 164, 0.42) 0%, rgba(23, 15, 40, 0.95) 55%, rgba(18, 12, 31, 0.95) 100%);
  padding-right: 40px;
}

.b-custom-media {
  position: relative;
  height: 100%;
  min-height: 260px;
}

.b-custom-media img,
.b-custom-media .b-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
}

/* The live build, laid over the photo. Both stay in place: the canvas is
   transparent where the model is not, so the photo is what it sits on until
   it has faded in, and what is left if it never loads. */
.b-custom-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.7s ease;
  /* Drag turns it; a vertical swipe still scrolls the page past it. */
  touch-action: pan-y;
  cursor: grab;
}

.b-custom-media canvas.is-dragging { cursor: grabbing; }

.b-custom-media.is-live canvas { opacity: 1; }
.b-custom-media.is-live img { opacity: 0; }

.b-custom-hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(13, 9, 22, 0.72);
  border: 1px solid var(--b-line-soft);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--b-text-muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.b-custom-media.is-live .b-custom-hint { opacity: 1; }
/* Beats the rule above, which is the more specific of the two. */
.b-custom-media .b-custom-hint.is-gone { opacity: 0; }

.b-custom-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 45%, rgba(23, 15, 40, 0.9) 100%);
  /* Only there to blend a photo into the card; over the model it would also
     swallow the pointer, and the build is meant to be turned. */
  pointer-events: none;
}

.b-custom-media.is-live::after {
  background: linear-gradient(90deg, transparent 62%, rgba(23, 15, 40, 0.75) 100%);
}

.b-custom-text {
  padding: 34px 0;
}

.b-custom-text .b-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--b-accent);
  margin-bottom: 8px;
}

.b-custom-text h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.b-custom-text p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  max-width: 420px;
}

/* ================================================================
   BUILDS SHOWCASE
================================================================ */
.b-showcase {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--b-line-soft);
  border-radius: var(--b-radius);
  overflow: hidden;
  background: var(--b-surface);
}

.b-showcase-media {
  position: relative;
  min-height: 240px;
}

.b-showcase-media img,
.b-showcase-media .b-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b-showcase-body {
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  align-items: flex-start;
}

.b-showcase-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.b-showcase-body p {
  color: var(--b-text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.b-showcase-tagline {
  color: var(--b-accent);
  font-size: 14px;
  font-weight: 500;
}

.b-showcase-specs {
  display: grid;
  gap: 4px;
}

.b-showcase-specs li {
  font-size: 13.5px;
  color: var(--b-text-muted);
  line-height: 1.5;
}

.b-showcase-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.b-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* Crossfade between builds */
.b-showcase-media img,
.b-showcase-body .b-build-label,
.b-showcase-body h3,
.b-showcase-tagline,
.b-showcase-specs,
.b-showcase-price {
  transition: opacity 0.35s ease;
}

.b-showcase.is-swapping .b-showcase-media img,
.b-showcase.is-swapping .b-showcase-body .b-build-label,
.b-showcase.is-swapping .b-showcase-body h3,
.b-showcase.is-swapping .b-showcase-tagline,
.b-showcase.is-swapping .b-showcase-specs,
.b-showcase.is-swapping .b-showcase-price {
  opacity: 0;
}

.b-showcase-body h3 a {
  color: inherit;
  transition: color var(--transition);
}

.b-showcase-body h3 a:hover {
  color: var(--b-accent);
}

.b-showcase-dots {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.b-sc-dot {
  width: 26px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background var(--transition);
}

.b-sc-dot:hover {
  background: rgba(168, 85, 247, 0.6);
}

.b-sc-dot.is-active {
  background: var(--b-accent);
}

.b-sc-dot:focus-visible {
  outline: 2px solid var(--b-accent);
  outline-offset: 3px;
}

/* ================================================================
   SOCIAL
================================================================ */
.b-social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.b-social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line-soft);
  background: var(--b-surface);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.b-social-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.5);
  background: var(--b-surface-2);
}

.b-social-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.b-social-icon svg {
  width: 22px;
  height: 22px;
  fill: #FFFFFF;
}

.b-social-icon--youtube   { background: #FF0000; }
.b-social-icon--tiktok    { background: #000000; border: 1px solid rgba(255,255,255,0.18); }
.b-social-icon--instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.b-social-icon--facebook  { background: #1877F2; }

.b-social-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.b-social-meta strong {
  font-size: 15px;
  font-weight: 600;
}

.b-social-meta span {
  font-size: 13px;
  color: var(--b-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b-social-card .b-arrow {
  margin-left: auto;
  color: var(--b-text-muted);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}

.b-social-card .b-arrow svg {
  width: 17px;
  height: 17px;
}

.b-social-card:hover .b-arrow {
  color: #FFFFFF;
  transform: translateX(4px);
}

/* Clip gallery */
.b-clips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.b-clip {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--b-radius);
  overflow: hidden;
  border: 1px solid var(--b-line-soft);
  background: var(--b-surface);
  transition: transform var(--transition), border-color var(--transition);
}

.b-clip img,
.b-clip .b-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.b-clip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 13, 0.28);
  transition: background var(--transition);
}

.b-clip-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
}

.b-clip-play svg {
  width: 16px;
  height: 16px;
  fill: #120C1F;
  margin-left: 2px;
}

.b-clip:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.55);
}

.b-clip:hover img,
.b-clip:hover .b-ph {
  transform: scale(1.06);
}

.b-clip:hover::after {
  background: rgba(8, 6, 13, 0.12);
}

.b-clip:hover .b-clip-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #FFFFFF;
}

.b-center {
  display: flex;
  justify-content: center;
}

/* ================================================================
   STICKY CTA BAR
   Sticks to the bottom of the viewport while <main> is on screen, then
   settles into its natural spot at the end of <main> — above the footer.
================================================================ */
.b-main {
  display: block;
}

.b-sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 90;
  margin-top: 56px;
  background: linear-gradient(90deg, rgba(85, 20, 164, 0.55) 0%, rgba(18, 12, 31, 0.97) 60%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--b-line);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.b-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 0;
}

.b-sticky-text strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}

.b-sticky-text span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ================================================================
   FOOTER — same layout as the main site, dark palette
================================================================ */
.builds-page .site-footer {
  background: var(--b-bg-alt);
  border-top: 1px solid var(--b-line-soft);
}

.builds-page .footer-contact a,
.builds-page .footer-brand,
.builds-page .footer-links-title,
.builds-page .footer-links a {
  color: #FFFFFF;
}

.builds-page .footer-contact a:hover {
  color: var(--b-accent);
}

.builds-page .footer-links a {
  opacity: 0.7;
}

.builds-page .footer-links a:hover {
  opacity: 1;
  color: var(--b-accent);
}

.builds-page .footer-payments-label {
  color: #FFFFFF;
  opacity: 0.6;
}

/* The Netopia logo is a dark-on-white PNG — multiply would erase it here */
.builds-page .footer-payment-logo--netopia {
  mix-blend-mode: normal;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 3px 6px;
}

.builds-page .footer-logo-img {
  height: 70px;
}

/* ================================================================
   PRE-BUILD PAGE — hero eyebrow
================================================================ */
.b-hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--b-accent);
  margin-bottom: 16px;
}

.b-hero-sub--last {
  margin-bottom: 0;
}

/* Active state for the nav button matching the current page */
.builds-nav-btn.is-active {
  background: rgba(85, 20, 164, 0.35);
  border-color: var(--b-accent);
}

/* ================================================================
   PRE-BUILD PAGE — shop header, price filter
================================================================ */
.b-shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.b-shop-title {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 700;
  color: var(--b-text);
}

.b-see-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 6px 2px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--b-accent);
  cursor: pointer;
  transition: color var(--transition);
  white-space: nowrap;
}

.b-see-all:hover {
  color: #FFFFFF;
}

.b-see-all-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.b-see-all.is-open .b-see-all-icon {
  transform: rotate(180deg);
}

.b-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--b-line-soft);
  border-radius: var(--b-radius);
  background: var(--b-surface);
}

.b-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--b-text-muted);
  white-space: nowrap;
}

.b-filter-label svg {
  width: 15px;
  height: 15px;
}

.b-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.b-pill {
  padding: 7px 15px;
  border-radius: 50px;
  border: 1px solid var(--b-line-soft);
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--b-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.b-pill:hover {
  color: #FFFFFF;
  border-color: rgba(168, 85, 247, 0.5);
}

.b-pill.is-active {
  background: var(--b-purple);
  border-color: var(--b-purple);
  color: #FFFFFF;
}

.b-filter-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--b-text-muted);
  white-space: nowrap;
}

.b-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--b-text-muted);
  font-size: 15px;
}

/* ================================================================
   PRE-BUILD PAGE — build cards
================================================================ */
.b-build-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.b-build {
  display: flex;
  flex-direction: column;
  border-radius: var(--b-radius);
  overflow: hidden;
  border: 1px solid var(--b-line-soft);
  background: var(--b-surface);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.b-build[hidden] {
  display: none;
}

.b-build:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 14px 38px rgba(85, 20, 164, 0.3);
}

.b-build-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.b-build-media img,
.b-build-media .b-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.b-build:hover .b-build-media img,
.b-build:hover .b-build-media .b-ph {
  transform: scale(1.06);
}

.b-wish {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 6, 13, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.b-wish svg {
  width: 16px;
  height: 16px;
  fill: none;
}

.b-wish:hover {
  border-color: var(--b-accent);
  color: var(--b-accent);
}

.b-wish[aria-pressed="true"] {
  color: var(--b-accent);
  border-color: var(--b-accent);
}

.b-wish[aria-pressed="true"] svg {
  fill: currentColor;
}

.b-build-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 18px;
}

.b-build-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--b-text-muted);
  margin-bottom: 3px;
}

.b-build-label span {
  color: var(--b-accent);
}

.b-build-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}

.b-build-specs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 16px;
}

.b-build-specs li {
  font-size: 13px;
  color: var(--b-text-muted);
  line-height: 1.45;
}

.b-build-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--b-line-soft);
}

.b-build-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
}

.b-buy {
  padding: 8px 16px;
  font-size: 13px;
}

/* ================================================================
   CUSTOM PAGE — hero variant with the image on the right
================================================================ */
.b-hero--form {
  min-height: 360px;
}

.b-hero-media--side {
  left: 55%;
}

.b-hero-overlay--side {
  background:
    linear-gradient(90deg, var(--b-bg) 42%, rgba(8, 6, 13, 0.55) 58%, transparent 72%),
    linear-gradient(180deg, transparent 60%, var(--b-bg) 100%);
}

/* Longhand only: the shorthand would wipe .container's side padding
   and leave the hero text flush against the screen edge. */
.b-hero--form .b-hero-content {
  padding-top: 64px;
  padding-bottom: 64px;
}

.b-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 13px;
  color: var(--b-text-muted);
}

.b-crumbs a {
  color: var(--b-accent);
  transition: color var(--transition);
}

.b-crumbs a:hover {
  color: #FFFFFF;
}

.b-crumbs svg {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}

.b-hero--form h1 .accent {
  color: var(--b-accent);
}

/* ================================================================
   CUSTOM PAGE — form steps
================================================================ */
.b-section--form {
  padding: 8px 0 72px;
}

.b-step {
  display: grid;
  grid-template-columns: 46px 240px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--b-line-soft);
}

.b-step-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--b-accent);
  line-height: 1.6;
}

.b-step-q {
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.6;
  padding-top: 4px;
}

/* style.css sets a global `label` rule (12.5px, dark navy) for the light-theme
   forms — steps that wrap their question in a <label> must opt back out. */
.b-step-q label {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.b-step-body {
  min-width: 0;
}

/* Option cards ------------------------------------------------- */
.b-opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.b-opts--4 {
  grid-template-columns: repeat(4, 1fr);
}

.b-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line-soft);
  background: var(--b-surface);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 0;
}

/* The radio drives the visual state but stays out of the layout */
.b-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.b-opt-ico {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--b-text-muted);
  transition: color var(--transition);
}

.b-opt-txt {
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b-opt:hover {
  border-color: rgba(168, 85, 247, 0.5);
  background: var(--b-surface-2);
}

.b-opt:has(input:checked) {
  border-color: var(--b-accent);
  background: rgba(85, 20, 164, 0.22);
}

.b-opt:has(input:checked) .b-opt-ico {
  color: var(--b-accent);
}

/* Keyboard focus has to be visible even though the input is hidden */
.b-opt:has(input:focus-visible) {
  outline: 2px solid var(--b-accent);
  outline-offset: 2px;
}

.b-opt-check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--b-accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--transition);
}

.b-opt-check svg {
  width: 11px;
  height: 11px;
}

.b-opt:has(input:checked) .b-opt-check {
  opacity: 1;
  transform: scale(1);
}

/* Colour swatches for step 04 */
.b-swatch {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.b-swatch--black  { background: #0A0A0A; }
.b-swatch--white  { background: #FFFFFF; }
.b-swatch--purple { background: #A855F7; }
.b-swatch--red    { background: #EF4444; }
.b-swatch--blue   { background: #3B82F6; }
.b-swatch--green  { background: #22C55E; }
.b-swatch--rgb {
  background: conic-gradient(#FF0000, #FFFF00, #00FF00, #00FFFF, #0000FF, #FF00FF, #FF0000);
  border-color: transparent;
}
/* Half black / half warm — "any other colour we agree on" */
.b-swatch--other {
  background: linear-gradient(90deg, #0A0A0A 0 50%, #F59E0B 50% 100%);
}

/* Sub-groups inside step 04 (culoarea carcasei + iluminare) */
/* Longer labels ("RGB / Multicolor") need to wrap instead of being clipped */
.b-opts--wrap .b-opt {
  padding: 13px 14px;
  gap: 9px;
}

.b-opts--wrap .b-opt-txt {
  white-space: normal;
  overflow: visible;
  line-height: 1.25;
}

.b-subgroup + .b-subgroup {
  margin-top: 22px;
}

.b-sub-q {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--b-text-muted);
}

/* Artwork picker ------------------------------------------------ */
.b-sub-note {
  margin: -4px 0 10px;
  font-size: 12.5px;
  color: var(--b-text-muted);
}

/* A swatch would say nothing here, so each stock cover shows itself */
.b-art-thumb {
  width: 22px;
  height: 30px;
  border-radius: 5px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: #0A0A0A;
  background-size: cover;
  background-position: center;
}

.b-art-thumb--spartan { background-image: url("/static/covers/spartan-thumb.webp"); }
.b-art-thumb--spider  { background-image: url("/static/covers/spider-thumb.webp"); }
.b-art-thumb--phantom { background-image: url("/static/covers/phantom-thumb.webp"); }
.b-art-thumb--knight  { background-image: url("/static/covers/knight-thumb.webp"); }

/* "Design propriu" — one drop tile per printed panel */
.b-art-up {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.b-art-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: var(--b-radius);
  border: 1px dashed rgba(168, 85, 247, 0.45);
  background: var(--b-surface);
  cursor: pointer;
  min-width: 0;
  transition: border-color var(--transition), background-color var(--transition);
}

.b-art-tile:hover {
  border-color: var(--b-accent);
  background: var(--b-surface-2);
}

/* The tile is the control; the input itself only has to stay reachable */
.b-art-tile:focus-within {
  border-color: var(--b-accent);
  background: var(--b-surface-2);
}

.b-art-tile.is-loaded {
  border-style: solid;
  border-color: var(--b-accent);
}

.b-art-file {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.b-art-tile-ico {
  display: flex;
  flex-shrink: 0;
  color: var(--b-accent);
}

.b-art-tile-ico svg {
  width: 22px;
  height: 22px;
}

.b-art-tile-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.b-art-tile-txt strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.b-art-tile-name {
  font-size: 11.5px;
  color: var(--b-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b-art-tile.is-loaded .b-art-tile-name {
  color: var(--b-accent);
}

.b-art-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--b-text-muted);
}


/* Inputs -------------------------------------------------------- */
.b-money {
  position: relative;
  display: flex;
  align-items: center;
}

.b-money input {
  width: 100%;
  padding: 16px 52px 16px 18px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line-soft);
  background: var(--b-surface);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  transition: border-color var(--transition);
}

.b-money-unit {
  position: absolute;
  right: 18px;
  font-size: 14px;
  color: var(--b-text-muted);
  pointer-events: none;
}

/* Budget slider — --fill is set by JS to colour the track up to the thumb */
.b-range-wrap {
  margin-top: 16px;
}

.b-range {
  --fill: 2%;
  width: 100%;
  height: 6px;
  border-radius: 50px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(
    to right,
    var(--b-purple) 0%,
    var(--b-accent) var(--fill),
    rgba(255, 255, 255, 0.1) var(--fill),
    rgba(255, 255, 255, 0.1) 100%
  );
  cursor: pointer;
  outline: none;
}

.b-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid var(--b-purple);
  box-shadow: 0 2px 10px rgba(85, 20, 164, 0.7);
  cursor: pointer;
  transition: transform var(--transition);
}

.b-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid var(--b-purple);
  box-shadow: 0 2px 10px rgba(85, 20, 164, 0.7);
  cursor: pointer;
}

.b-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.b-range:focus-visible {
  outline: 2px solid var(--b-accent);
  outline-offset: 6px;
}

.b-range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--b-text-muted);
}

/* Shown until the model arrives; the room renders straight away, so without
   this the panel just looks like an empty stage for a second or two. */
.b-viewer-loading {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(13, 9, 22, 0.72);
  border: 1px solid var(--b-line-soft);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--b-text-muted);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.b-viewer-stage.is-loaded .b-viewer-loading,
.b-viewer-stage.is-failed .b-viewer-loading {
  opacity: 0;
}

/* Conditional blocks — revealed by one specific choice ----------- */
.b-cond-block {
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line);
  background: rgba(85, 20, 164, 0.1);
}

.b-cond-block[hidden] {
  display: none;
}

.b-cond-q {
  display: block;
  margin-bottom: 10px;
  /* explicit — style.css styles bare <label> for the light theme */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  color: #FFFFFF;
  cursor: pointer;
}

/* Dropdown ------------------------------------------------------- */
.b-select-wrap {
  position: relative;
}

.b-select {
  width: 100%;
  padding: 13px 44px 13px 16px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line-soft);
  background-color: var(--b-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A855F7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  /* the native popup follows this, so the option list stays dark */
  color-scheme: dark;
  box-shadow: none;
  transition: border-color var(--transition), background-color var(--transition);
}

.b-select:hover {
  border-color: rgba(168, 85, 247, 0.5);
  background-color: var(--b-surface-2);
}

.b-select:focus {
  border-color: var(--b-accent);
  box-shadow: none;
}

.b-select:focus-visible {
  outline: 2px solid var(--b-accent);
  outline-offset: 2px;
}

/* Fallback for engines that ignore color-scheme on the popup */
.b-select option {
  background: var(--b-surface);
  color: #FFFFFF;
}

/* Peripherals detail panels ------------------------------------- */
.b-per-details:not(:empty) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.b-per-panel {
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line);
  background: rgba(85, 20, 164, 0.1);
}

.b-per-panel[hidden] {
  display: none;
}

.b-per-q {
  display: block;
  margin-bottom: 10px;
  /* explicit — style.css styles bare <label> for the light theme */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  color: #FFFFFF;
  cursor: pointer;
}

.b-per-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line-soft);
  background: var(--b-surface);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 14px;
  transition: border-color var(--transition), opacity var(--transition);
}

.b-per-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.b-per-idk {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--b-text-muted);
  cursor: pointer;
}

.b-per-idk input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.b-per-idk:hover {
  color: #FFFFFF;
}

.b-per-idk:hover .b-gdpr-box {
  border-color: var(--b-accent);
}

.b-per-idk:has(input:checked) {
  color: #FFFFFF;
}

.b-per-idk:has(input:checked) .b-gdpr-box {
  background: var(--b-purple);
  border-color: var(--b-purple);
}

.b-per-idk:has(input:checked) .b-gdpr-box svg {
  opacity: 1;
  transform: scale(1);
}

.b-per-idk:has(input:focus-visible) .b-gdpr-box {
  outline: 2px solid var(--b-accent);
  outline-offset: 2px;
}

/* GDPR consent -------------------------------------------------- */
.b-gdpr-wrap {
  padding-top: 26px;
}

.b-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  /* explicit, not inherited — style.css styles bare <label> for light theme */
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--b-text-muted);
  line-height: 1.55;
}

.b-gdpr input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.b-gdpr-box {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--b-surface);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.b-gdpr-box svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--transition);
}

.b-gdpr:hover .b-gdpr-box {
  border-color: var(--b-accent);
}

.b-gdpr:has(input:checked) .b-gdpr-box {
  background: var(--b-purple);
  border-color: var(--b-purple);
}

.b-gdpr:has(input:checked) .b-gdpr-box svg {
  opacity: 1;
  transform: scale(1);
}

.b-gdpr:has(input:focus-visible) .b-gdpr-box {
  outline: 2px solid var(--b-accent);
  outline-offset: 2px;
}

.b-gdpr-txt a {
  color: var(--b-accent);
  text-decoration: underline;
}

.b-gdpr-txt a:hover {
  color: #FFFFFF;
}

.b-gdpr-wrap .b-err {
  margin-left: 30px;
}

.b-section--form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line-soft);
  background: var(--b-surface);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition);
}

.b-contact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.b-field {
  position: relative;
  display: flex;
  align-items: center;
}

.b-field-ico {
  position: absolute;
  left: 15px;
  display: flex;
  color: var(--b-text-muted);
  pointer-events: none;
}

.b-field-ico svg {
  width: 17px;
  height: 17px;
}

.b-field input {
  width: 100%;
  padding: 15px 16px 15px 42px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line-soft);
  background: var(--b-surface);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 14.5px;
  transition: border-color var(--transition);
}

.b-section--form input::placeholder,
.b-section--form textarea::placeholder {
  color: #6F677F;
}

.b-section--form input:focus,
.b-section--form textarea:focus {
  outline: none;
  border-color: var(--b-accent);
}

.b-err {
  margin-top: 10px;
  font-size: 13px;
  color: #FF7A7A;
}

/* Submit -------------------------------------------------------- */
.b-submit-wrap {
  padding-top: 34px;
  text-align: center;
}

.b-submit {
  width: 100%;
  max-width: 500px;
  padding: 17px 28px;
  font-size: 16px;
  justify-content: center;
}

.b-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--b-text-muted);
}

.b-privacy svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Success ------------------------------------------------------- */
.b-success {
  text-align: center;
  padding: 64px 24px;
}

.b-success-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(85, 20, 164, 0.28);
  border: 1px solid var(--b-accent);
  color: var(--b-accent);
  margin-bottom: 20px;
}

.b-success-ico svg {
  width: 28px;
  height: 28px;
}

.b-success h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.b-success p {
  color: var(--b-text-muted);
  margin-bottom: 26px;
}

.b-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Trust strip --------------------------------------------------- */
.b-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--b-line-soft);
  border-radius: var(--b-radius);
  background: var(--b-surface);
  overflow: hidden;
}

.b-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 20px;
  border-right: 1px solid var(--b-line-soft);
}

.b-trust-item:last-child {
  border-right: none;
}

.b-trust-ico {
  display: flex;
  color: var(--b-accent);
  flex-shrink: 0;
}

.b-trust-ico svg {
  width: 20px;
  height: 20px;
}

.b-trust-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.b-trust-item p {
  font-size: 13px;
  color: var(--b-text-muted);
  line-height: 1.5;
}

/* ================================================================
   PRODUCT PAGE
================================================================ */
.b-crumbs--page {
  margin: 26px 0 22px;
}

.b-product {
  padding: 0 0 72px;
}

.b-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* The image stays put while the long spec column scrolls */
.b-product-media {
  position: sticky;
  top: 96px;
  border-radius: var(--b-radius-lg);
  overflow: hidden;
  border: 1px solid var(--b-line);
  background: var(--b-surface);
}

.b-product-media img {
  width: 100%;
  height: auto;
  display: block;
}

.b-product-name {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 2px 0 10px;
}

.b-product-tagline {
  font-size: 1.05rem;
  color: var(--b-accent);
  font-weight: 500;
  margin-bottom: 24px;
}

.b-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--b-line-soft);
}

.b-product-price {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 800;
  color: #FFFFFF;
}

.b-product-vat {
  font-size: 13px;
  color: var(--b-text-muted);
}

.b-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
}

.b-order-btn {
  flex: 1 1 220px;
}

.b-spec-block {
  margin-top: 34px;
}

.b-spec-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--b-accent);
  margin-bottom: 14px;
}

.b-spec-list {
  border: 1px solid var(--b-line-soft);
  border-radius: var(--b-radius);
  overflow: hidden;
  background: var(--b-surface);
}

.b-spec-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--b-line-soft);
}

.b-spec-row:last-child {
  border-bottom: none;
}

.b-spec-row dt {
  font-size: 13px;
  color: var(--b-text-muted);
}

.b-spec-row dd {
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
}

.b-included {
  display: grid;
  gap: 10px;
}

.b-included li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line);
  background: rgba(85, 20, 164, 0.12);
}

.b-included svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--b-accent);
}

.b-included strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.b-included span {
  font-size: 13px;
  color: var(--b-text-muted);
  line-height: 1.5;
}

/* Listing card tweaks now that the media is a link and cards are generated */
.b-build {
  position: relative;
}

.b-build-media {
  display: block;
  aspect-ratio: 4 / 4.6;
}

.b-build-name a {
  color: inherit;
  transition: color var(--transition);
}

.b-build-name a:hover {
  color: var(--b-accent);
}

/* ================================================================
   CHECKOUT
================================================================ */
.b-checkout-section {
  padding: 0 0 72px;
}

.b-checkout-title {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 30px;
}

.b-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.b-checkout-missing {
  text-align: center;
  padding: 60px 20px;
}

.b-checkout-missing h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.b-checkout-missing p {
  color: var(--b-text-muted);
  margin-bottom: 22px;
}

.b-fieldset {
  border: none;
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--b-line-soft);
}

.b-legend {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 18px;
  padding: 0;
}

.b-legend-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--b-accent);
  letter-spacing: 1px;
}

.b-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.b-col-2 {
  grid-column: span 2;
}

.b-field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

/* explicit — style.css styles bare <label> for the light theme */
.b-field-group label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  color: var(--b-text-muted);
}

.b-field-group input,
.b-field-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line-soft);
  background: var(--b-surface);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 14.5px;
  transition: border-color var(--transition);
}

.b-field-group textarea {
  resize: vertical;
  line-height: 1.6;
}

.b-field-group input::placeholder,
.b-field-group textarea::placeholder {
  color: #6F677F;
}

.b-field-group input:focus,
.b-field-group textarea:focus {
  outline: none;
  border-color: var(--b-accent);
}

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

.b-pay-method {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-accent);
  background: rgba(85, 20, 164, 0.16);
}

.b-pay-ico {
  display: flex;
  color: var(--b-accent);
  flex-shrink: 0;
}

.b-pay-ico svg {
  width: 22px;
  height: 22px;
}

.b-pay-method strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.b-pay-method p {
  font-size: 13px;
  color: var(--b-text-muted);
  line-height: 1.55;
}

/* Billing / company toggles ---------------------------------------- */
.b-check-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  cursor: pointer;
  /* explicit — style.css styles bare <label> for the light theme */
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.88);
}

.b-check-row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.b-check-row:hover .b-gdpr-box {
  border-color: var(--b-accent);
}

.b-check-row:has(input:checked) .b-gdpr-box {
  background: var(--b-purple);
  border-color: var(--b-purple);
}

.b-check-row:has(input:checked) .b-gdpr-box svg {
  opacity: 1;
  transform: scale(1);
}

.b-check-row:has(input:focus-visible) .b-gdpr-box {
  outline: 2px solid var(--b-accent);
  outline-offset: 2px;
}

.b-cond-block {
  margin: 4px 0 14px;
  padding: 20px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line);
  background: rgba(85, 20, 164, 0.1);
}

.b-cond-block[hidden] {
  display: none;
}

.b-cond-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--b-accent);
  margin-bottom: 14px;
}

.b-lead-time {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 760px;
  margin: 34px auto 0;
  padding: 16px 20px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line-soft);
  background: var(--b-surface);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--b-text-muted);
}

.b-lead-time svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--b-accent);
}

/* Order recap on the confirmation page ----------------------------- */
.b-order-recap {
  max-width: 560px;
  margin: 0 auto 26px;
  padding: 20px 24px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line-soft);
  background: var(--b-surface);
  text-align: left;
}

.b-recap-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--b-line-soft);
}

.b-recap-row[hidden] {
  display: none;
}

.b-recap-row span {
  font-size: 13px;
  color: var(--b-text-muted);
  flex-shrink: 0;
}

.b-recap-row strong {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: right;
}

.b-recap-invoice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--b-accent);
}

.b-recap-invoice svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.b-checkout-submit {
  max-width: none;
  margin-top: 26px;
}

/* Order summary --------------------------------------------------- */
.b-summary-inner {
  position: sticky;
  top: 96px;
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-lg);
  background: var(--b-surface);
  padding: 24px;
}

.b-summary-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.b-summary-product {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--b-line-soft);
}

.b-summary-product img {
  width: 88px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--b-line-soft);
  flex-shrink: 0;
}

.b-summary-product h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.b-summary-tagline {
  font-size: 12.5px;
  color: var(--b-accent);
}

.b-summary-specs {
  padding: 16px 0;
  border-bottom: 1px solid var(--b-line-soft);
  display: grid;
  gap: 7px;
}

.b-summary-specs li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
}

.b-summary-specs li span:first-child {
  color: var(--b-text-muted);
  flex-shrink: 0;
}

.b-summary-specs li span:last-child {
  color: #FFFFFF;
  text-align: right;
}

.b-summary-lines {
  padding: 16px 0;
  border-bottom: 1px solid var(--b-line-soft);
}

.b-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--b-text-muted);
  margin-bottom: 9px;
}

.b-free {
  color: #4ADE80;
  font-weight: 600;
}

.b-summary-total {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--b-line-soft);
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
}

.b-summary-vat {
  font-size: 11.5px;
  color: var(--b-text-muted);
  text-align: right;
}

.b-summary-perks {
  display: grid;
  gap: 8px;
  padding-top: 16px;
}

.b-summary-perks li {
  position: relative;
  padding-left: 20px;
  font-size: 12.5px;
  color: var(--b-text-muted);
}

.b-summary-perks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--b-accent);
}

.b-success--page {
  padding: 80px 24px;
}

.b-success-ref {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 26px;
  margin-bottom: 22px;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-line);
  background: rgba(85, 20, 164, 0.14);
}

.b-success-ref span {
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--b-text-muted);
}

.b-success-ref strong {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #FFFFFF;
}

.b-success-note {
  font-size: 13.5px;
  color: var(--b-text-muted);
  margin-bottom: 26px;
}

.b-success-note a {
  color: var(--b-accent);
}

/* ================================================================
   MOTION SYSTEM

   Every hiding rule is scoped to html.motion-ready, which motion.js
   adds. No JS (or a JS error) means no hidden content — the page just
   renders static. All of it is skipped under prefers-reduced-motion.
================================================================ */
:root {
  --m-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --m-delay: 0ms;
}

/* Scroll progress bar ---------------------------------------------- */
.m-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--b-purple), var(--b-accent));
  pointer-events: none;
}

/* Header condense on scroll ---------------------------------------- */
.builds-page .site-header {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.builds-page .header-inner {
  transition: height 0.3s var(--m-ease);
}

.builds-page .site-header.is-condensed {
  background: rgba(8, 6, 13, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.65);
}

.motion-ready .builds-page .site-header.is-condensed .header-inner,
.builds-page .site-header.is-condensed .header-inner {
  height: 62px;
}

.builds-page .site-header.is-condensed .builds-logo-img {
  height: 42px;
  transition: height 0.3s var(--m-ease);
}

/* Scroll reveal ----------------------------------------------------- */
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.62s var(--m-ease) var(--m-delay),
    transform 0.62s var(--m-ease) var(--m-delay);
  will-change: opacity, transform;
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Headline word reveal ---------------------------------------------- */
.m-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.m-w-i {
  display: inline-block;
}

.motion-ready .b-title .m-w-i,
.motion-ready .b-shop-title .m-w-i,
.motion-ready .b-hero h1 .m-w-i {
  transform: translate3d(0, 105%, 0);
  transition: transform 0.7s var(--m-ease);
}

/* Words cascade left to right */
.motion-ready .b-title .m-w:nth-child(1)  .m-w-i { transition-delay: 40ms; }
.motion-ready .b-title .m-w:nth-child(2)  .m-w-i { transition-delay: 90ms; }
.motion-ready .b-title .m-w:nth-child(3)  .m-w-i { transition-delay: 140ms; }
.motion-ready .b-title .m-w:nth-child(4)  .m-w-i { transition-delay: 190ms; }
.motion-ready .b-title .m-w:nth-child(5)  .m-w-i { transition-delay: 240ms; }
.motion-ready .b-title .m-w:nth-child(6)  .m-w-i { transition-delay: 290ms; }
.motion-ready .b-title .m-w:nth-child(n+7) .m-w-i { transition-delay: 330ms; }

.motion-ready .b-title.is-visible .m-w-i,
.motion-ready .b-shop-title.is-visible .m-w-i {
  transform: none;
}

/* The title itself only fades — the words do the moving */
.motion-ready .b-title[data-reveal],
.motion-ready .b-shop-title[data-reveal] {
  transform: none;
}

/* Hero entrance ------------------------------------------------------ */
.motion-ready .b-hero h1 .m-w:nth-child(1)  .m-w-i { transition-delay: 120ms; }
.motion-ready .b-hero h1 .m-w:nth-child(2)  .m-w-i { transition-delay: 175ms; }
.motion-ready .b-hero h1 .m-w:nth-child(3)  .m-w-i { transition-delay: 230ms; }
.motion-ready .b-hero h1 .m-w:nth-child(4)  .m-w-i { transition-delay: 285ms; }
.motion-ready .b-hero h1 .m-w:nth-child(n+5) .m-w-i { transition-delay: 330ms; }

.motion-ready .b-hero.is-in h1 .m-w-i {
  transform: none;
}

.motion-ready .b-hero .b-hero-sub,
.motion-ready .b-hero .b-hero-buttons,
.motion-ready .b-hero .b-crumbs {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.7s var(--m-ease), transform 0.7s var(--m-ease);
}

.motion-ready .b-hero .b-crumbs      { transition-delay: 80ms; }
.motion-ready .b-hero .b-hero-sub     { transition-delay: 420ms; }
.motion-ready .b-hero .b-hero-buttons { transition-delay: 540ms; }

.motion-ready .b-hero.is-in .b-hero-sub,
.motion-ready .b-hero.is-in .b-hero-buttons,
.motion-ready .b-hero.is-in .b-crumbs {
  opacity: 1;
  transform: none;
}

/* Slow drift on the hero image, offset by scroll parallax */
.motion-ready .b-hero-media img {
  --m-parallax: 0px;
  transform: translate3d(0, var(--m-parallax), 0) scale(1.06);
  animation: m-kenburns 22s ease-in-out infinite alternate;
}

@keyframes m-kenburns {
  from { transform: translate3d(0, var(--m-parallax), 0) scale(1.06); }
  to   { transform: translate3d(-1.5%, var(--m-parallax), 0) scale(1.12); }
}

/* Accent shimmer ----------------------------------------------------- */
.motion-ready .b-title .accent,
.motion-ready .b-hero-sub .accent {
  background: linear-gradient(100deg,
    var(--b-accent) 0%, #E9D5FF 45%, var(--b-accent) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: m-shimmer 5.5s ease-in-out infinite;
}

@keyframes m-shimmer {
  0%, 100% { background-position: 130% 0; }
  50%      { background-position: -30% 0; }
}

/* Cursor spotlight on cards ------------------------------------------ */
.b-usecase, .b-build, .b-social-card, .b-clip, .b-custom-banner {
  --mx: 50%;
  --my: 50%;
}

.b-usecase::before,
.b-build::before,
.b-social-card::before,
.b-clip::before,
.b-custom-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    260px circle at var(--mx) var(--my),
    rgba(168, 85, 247, 0.22) 0%,
    transparent 62%
  );
}

.b-social-card, .b-custom-banner {
  position: relative;
}

.b-usecase:hover::before,
.b-build:hover::before,
.b-social-card:hover::before,
.b-clip:hover::before,
.b-custom-banner:hover::before {
  opacity: 1;
}

/* Use-case label lifts on hover */
.b-usecase span {
  transition: transform 0.35s var(--m-ease);
}

.b-usecase:hover span {
  transform: translateY(-3px);
}

/* Filter re-entry ----------------------------------------------------- */
.b-build.is-refiltering {
  animation: m-pop 0.5s var(--m-ease) both;
  animation-delay: var(--m-delay);
}

@keyframes m-pop {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* Button shine -------------------------------------------------------- */
.motion-ready .btn-purple {
  position: relative;
  overflow: hidden;
}

.motion-ready .btn-purple::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg,
    transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
}

.motion-ready .btn-purple:hover::after {
  animation: m-shine 0.75s ease;
}

@keyframes m-shine {
  to { left: 130%; }
}

/* Build card image drift on hover -------------------------------------- */
.b-build-media img {
  transition: transform 0.6s var(--m-ease);
}

.b-build:hover .b-build-media img {
  transform: scale(1.07);
}

/* Social icon pop ------------------------------------------------------ */
.b-social-icon {
  transition: transform 0.4s var(--m-ease);
}

.b-social-card:hover .b-social-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* Play button pulse ---------------------------------------------------- */
.motion-ready .b-clip-play {
  animation: m-pulse 2.8s ease-in-out infinite;
}

@keyframes m-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5); }
  60%      { box-shadow: 0 0 0 14px rgba(168, 85, 247, 0); }
}

/* Sticky CTA sheen ------------------------------------------------------ */
.motion-ready .b-sticky-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg,
    transparent 30%, rgba(168, 85, 247, 0.13) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: m-sweep 7s ease-in-out infinite;
}

@keyframes m-sweep {
  0%, 100% { background-position: 140% 0; }
  50%      { background-position: -40% 0; }
}

/* Filter pills ---------------------------------------------------------- */
.b-pill {
  transition: all var(--transition), transform 0.25s var(--m-ease);
}

.b-pill:active {
  transform: scale(0.94);
}

.b-pill.is-active {
  box-shadow: 0 4px 16px rgba(85, 20, 164, 0.55);
}

/* ================================================================
   MOTION — MAKE YOUR OWN FORM
================================================================ */

/* Floating completion ring ---------------------------------------- */
.m-progress-rail {
  position: fixed;
  right: 26px;
  bottom: 118px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--b-line);
  background: rgba(18, 12, 31, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: transform 0.4s var(--m-ease), box-shadow 0.4s ease;
}

.m-rail-inner {
  position: relative;
  width: 44px;
  height: 44px;
}

.m-rail-ring {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}

.m-rail-ring circle {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
}

.m-ring-bg { stroke: rgba(255, 255, 255, 0.1); }

.m-ring-fg {
  stroke: url(#m-grad);
  stroke: var(--b-accent);
  transition: stroke-dashoffset 0.55s var(--m-ease);
}

.m-rail-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.m-rail-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--b-text-muted);
}

.m-progress-rail.is-bumped {
  animation: m-bump 0.45s var(--m-ease);
}

@keyframes m-bump {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.09); }
  100% { transform: scale(1); }
}

.m-progress-rail.is-complete {
  border-color: var(--b-accent);
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.45);
}

.m-progress-rail.is-complete .m-rail-label {
  color: var(--b-accent);
}

/* Step number ticks over to a check ------------------------------- */
.b-step-num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  transition: color 0.3s ease;
}

.b-step.is-done .b-step-num {
  color: transparent;
}

.b-step-num::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: var(--b-purple);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s var(--m-ease), transform 0.35s var(--m-ease);
  /* the tick itself */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.b-step.is-done .b-step-num::after {
  opacity: 1;
  transform: scale(1);
}

/* Active step ------------------------------------------------------ */
.b-step {
  position: relative;
  transition: opacity 0.35s ease;
}

.b-step::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: var(--b-accent);
  opacity: 0;
  transform: scaleY(0.3);
  transform-origin: 50% 50%;
  transition: opacity 0.35s ease, transform 0.45s var(--m-ease);
}

.b-step.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

/* Conditional blocks animate their height (driven by custom-motion.js) */
.b-per-panel,
.b-cond-block {
  will-change: height;
}

/* Budget slider bubble --------------------------------------------- */
.b-range-wrap {
  position: relative;
}

.m-range-bubble {
  position: absolute;
  top: -34px;
  transform: translateX(-50%) translateY(4px) scale(0.9);
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--b-purple);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.28s var(--m-ease);
}

.m-range-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: var(--b-purple);
  transform: rotate(45deg);
}

.b-range-wrap:hover .m-range-bubble,
.m-range-bubble.is-live {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Thumb glow scales with the chosen budget */
.b-range {
  --m-glow: 0.3;
}

.b-range::-webkit-slider-thumb {
  box-shadow: 0 2px 10px rgba(85, 20, 164, calc(0.3 + var(--m-glow) * 0.7)),
              0 0 0 calc(var(--m-glow) * 6px) rgba(168, 85, 247, 0.14);
}

.b-range::-moz-range-thumb {
  box-shadow: 0 2px 10px rgba(85, 20, 164, 0.7);
}

/* Option card ripple ------------------------------------------------ */
.b-opt {
  overflow: hidden;
}

.b-opt.is-rippling::after {
  content: "";
  position: absolute;
  left: var(--rx, 50%);
  top: var(--ry, 50%);
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.45);
  pointer-events: none;
  animation: m-ripple 0.6s ease-out forwards;
}

@keyframes m-ripple {
  to { transform: scale(34); opacity: 0; }
}

/* Selected card springs slightly */
.b-opt:has(input:checked) {
  animation: m-select 0.4s var(--m-ease);
}

@keyframes m-select {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.035); }
  100% { transform: scale(1); }
}

/* Submit -------------------------------------------------------------- */
.b-submit.is-ready {
  animation: m-ready 2.4s ease-in-out infinite;
}

@keyframes m-ready {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.42); }
  55%      { box-shadow: 0 0 0 13px rgba(168, 85, 247, 0); }
}

.b-submit.is-sending .b-submit-label::after {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 9px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: m-spin 0.7s linear infinite;
}

@keyframes m-spin {
  to { transform: rotate(360deg); }
}

/* Success ------------------------------------------------------------- */
.b-success.is-in .b-success-ico {
  animation: m-pop-in 0.6s var(--m-ease) both;
}

.b-success.is-in .b-success-ico svg {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: m-draw 0.7s var(--m-ease) 0.25s forwards;
}

@keyframes m-pop-in {
  from { opacity: 0; transform: scale(0.5) rotate(-12deg); }
  to   { opacity: 1; transform: none; }
}

@keyframes m-draw {
  to { stroke-dashoffset: 0; }
}

.b-success.is-in h2,
.b-success.is-in p,
.b-success.is-in .b-success-actions {
  animation: m-rise 0.6s var(--m-ease) both;
}

.b-success.is-in h2                { animation-delay: 0.18s; }
.b-success.is-in p                 { animation-delay: 0.28s; }
.b-success.is-in .b-success-actions { animation-delay: 0.38s; }

@keyframes m-rise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: none; }
}

/* Ambient glow behind the form ---------------------------------------- */
/* The glow is wider than a phone screen and drifts, so without clipping it
   extends the scrollable width and lets the page pinch-zoom out. `clip`
   rather than `hidden` so it never becomes a scroll container (which would
   break position: sticky elsewhere). */
.motion-ready .b-section--form {
  position: relative;
  overflow-x: clip;
}

.motion-ready .b-section--form::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 50%;
  width: 780px;
  height: 780px;
  margin-left: -390px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(85, 20, 164, 0.16) 0%, transparent 65%);
  animation: m-drift 16s ease-in-out infinite alternate;
}

@keyframes m-drift {
  from { transform: translate3d(-8%, 0, 0) scale(1); }
  to   { transform: translate3d(8%, 4%, 0) scale(1.12); }
}

@media (max-width: 768px) {
  /* A floating ring is the wrong shape on a phone — becomes a slim
     bottom strip instead, which cannot overlap the form. */
  .m-progress-rail {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 11px 18px calc(11px + env(safe-area-inset-bottom, 0px));
    border: none;
    border-top: 1px solid var(--b-line-soft);
    border-radius: 0;
    background: rgba(13, 9, 22, 0.96);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5);
  }

  .m-rail-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    height: auto;
    flex: 1;
  }

  .m-rail-ring { display: none; }

  /* The track is a flex item of .m-rail-inner; background-size animates,
     unlike a gradient colour stop. */
  .m-rail-inner::before {
    content: "";
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.12);
    background-image: linear-gradient(90deg, var(--b-purple), var(--b-accent));
    background-repeat: no-repeat;
    background-size: var(--m-pct, 0%) 100%;
    transition: background-size 0.5s var(--m-ease);
  }

  .m-rail-pct {
    position: static;
    inset: auto;
    flex-shrink: 0;
    font-size: 12px;
  }

  .m-rail-label {
    font-size: 10px;
    flex-shrink: 0;
  }

  .m-progress-rail.is-bumped {
    animation: none;              /* no scaling a full-width bar */
  }

  .b-step::before { left: -10px; }
}

/* Nothing moves for readers who asked for stillness ---------------------- */
@media (prefers-reduced-motion: reduce) {
  .m-progress { display: none; }

  .motion-ready [data-reveal],
  .motion-ready .b-hero .b-hero-sub,
  .motion-ready .b-hero .b-hero-buttons,
  .motion-ready .b-hero .b-crumbs {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .motion-ready .m-w-i { transform: none !important; }

  .motion-ready .b-hero-media img,
  .motion-ready .b-clip-play,
  .motion-ready .b-sticky-cta::after,
  .motion-ready .b-title .accent,
  .motion-ready .b-hero-sub .accent,
  .motion-ready .b-section--form::before,
  .b-submit.is-ready,
  .b-opt:has(input:checked),
  .b-opt.is-rippling::after,
  .b-success.is-in .b-success-ico,
  .b-success.is-in .b-success-ico svg,
  .b-success.is-in h2,
  .b-success.is-in p,
  .b-success.is-in .b-success-actions {
    animation: none !important;
  }

  .m-progress-rail { display: none; }

  .b-success.is-in .b-success-ico svg {
    stroke-dashoffset: 0 !important;
  }
}

/* ================================================================
   MOBILE NAV DRAWER — dark variant
================================================================ */
.builds-page .nav-toggle,
.builds-page .nav-close {
  color: #FFFFFF;
}

/* Scoped via <html> because the drawer is appended to <body>,
   outside .builds-page's subtree */
.builds-nav .nav-drawer-panel {
  background: var(--b-bg-alt);
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.6);
  border-left: 1px solid var(--b-line-soft);
}

.builds-nav .nav-close {
  color: #FFFFFF;
}

.builds-nav .nav-drawer-link:not(.btn) {
  background: var(--b-surface);
  border: 1px solid var(--b-line-soft);
  color: #FFFFFF;
}

.builds-nav .nav-drawer-link:not(.btn):hover {
  border-color: var(--b-accent);
}

.builds-nav .nav-drawer-link.back-to-site {
  border-left: 1px solid var(--b-line-soft);
  margin-left: 0;
  color: var(--b-text-muted);
}

.builds-nav .nav-backdrop {
  background: rgba(8, 6, 13, 0.7);
}

/* ================================================================
   IMAGE PLACEHOLDERS — swap each .b-ph for a real <img>
================================================================ */
.b-ph {
  display: block;
  width: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(85, 20, 164, 0.4) 0%, transparent 55%),
    linear-gradient(140deg, #1A1130 0%, #0D0916 100%);
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .b-usecase-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .b-build-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .b-product-grid,
  .b-checkout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .b-product-media,
  .b-summary-inner {
    position: static;
  }

  .b-product-media {
    max-width: 460px;
  }

  .b-step {
    grid-template-columns: 40px 1fr;
    gap: 12px 16px;
  }

  .b-step-body {
    grid-column: 1 / -1;
  }

  .b-opts--4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .b-trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .b-trust-item:nth-child(2n) {
    border-right: none;
  }

  .b-trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--b-line-soft);
  }

  .b-social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .b-clips {
    grid-template-columns: repeat(3, 1fr);
  }

  .b-custom-banner {
    grid-template-columns: 240px 1fr;
    padding-right: 32px;
  }

  .b-custom-banner .btn {
    grid-column: 2;
    justify-self: start;
    margin-bottom: 32px;
  }
}

@media (max-width: 768px) {
  /* Only the logo and the burger stay in the bar */
  .builds-page .header-inner {
    height: 64px;
  }

  .builds-nav-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .b-hero {
    min-height: 0;
  }

  .b-hero-content {
    padding: 64px 0 56px;
  }

  .b-hero-overlay {
    background: linear-gradient(180deg, rgba(8, 6, 13, 0.72) 0%, rgba(8, 6, 13, 0.86) 60%, var(--b-bg) 100%);
  }

  .b-section {
    padding: 56px 0;
  }

  .b-usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .b-filter-count {
    margin-left: 0;
    width: 100%;
  }

  .b-hero-media--side {
    left: 0;
  }

  .b-hero-overlay--side {
    background: linear-gradient(180deg, rgba(8, 6, 13, 0.72) 0%, rgba(8, 6, 13, 0.88) 60%, var(--b-bg) 100%);
  }

  .b-opts,
  .b-opts--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .b-art-up {
    grid-template-columns: 1fr;
  }

  .b-contact-row {
    grid-template-columns: 1fr;
  }

  .b-spec-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .b-custom-banner {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .b-custom-media {
    min-height: 230px;
  }

  .b-custom-text {
    padding: 26px 26px 0;
  }

  .b-custom-banner .btn {
    grid-column: 1;
    margin: 0 26px 28px;
  }

  .b-showcase {
    grid-template-columns: 1fr;
  }

  /* The build photos are portrait; cropping them into a short landscape box
     cut the towers in half. `contain` shows the whole PC, and the reserved
     aspect-ratio keeps the box sized before the lazy image arrives — height:auto
     would collapse to 0 and shift the layout on load. */
  .b-showcase-media {
    display: block;
    min-height: 0;
    aspect-ratio: 4 / 5;
    background: var(--b-bg-alt);
  }

  .b-showcase-media img,
  .b-showcase-media .b-ph {
    object-fit: contain;
  }

  .b-showcase-body {
    padding: 26px;
  }

  .b-clips {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Compact sticky bar — it was eating too much of a phone screen */
  .b-sticky-inner {
    padding: 10px 0;
    gap: 12px;
  }

  .b-sticky-text strong {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .b-sticky-text span {
    font-size: 12px;
  }

  .b-sticky-cta .btn {
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 10px;
  }

  .b-sticky-cta .btn svg {
    width: 14px;
    height: 14px;
  }

  .builds-logo-img {
    height: 42px;
  }

  .builds-logo-text {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .b-social-grid {
    grid-template-columns: 1fr;
  }

  .b-build-grid {
    grid-template-columns: 1fr;
  }

  .b-build-foot {
    flex-wrap: wrap;
  }

  .b-form-grid {
    grid-template-columns: 1fr;
  }

  .b-col-2 {
    grid-column: span 1;
  }

  .b-opts,
  .b-opts--4 {
    grid-template-columns: 1fr;
  }

  .b-trust {
    grid-template-columns: 1fr;
  }

  /* Tightest screens: drop the subtitle, keep one compact row */
  .b-sticky-text span {
    display: none;
  }

  .b-sticky-text strong {
    font-size: 0.85rem;
  }

  .b-sticky-cta .btn {
    padding: 9px 14px;
    font-size: 12.5px;
  }

  .b-trust-item {
    border-right: none;
    border-bottom: 1px solid var(--b-line-soft);
  }

  .b-hero-buttons .btn {
    flex: 1 1 100%;
  }
}

/* ================================================================
   LIVE 3D PREVIEW — /builds/custom

   Below 1080px the form runs full width and the viewer rides along as
   a sticky strip at the top. Above it, the two sit side by side and the
   viewer sticks while the form scrolls past.
================================================================ */
.b-viewer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.b-viewer-stage {
  position: relative;
  border-radius: var(--b-radius-lg);
  border: 1px solid var(--b-line);
  background:
    radial-gradient(120% 90% at 50% 6%, rgba(85, 20, 164, 0.30) 0%, transparent 62%),
    linear-gradient(180deg, #0C0817 0%, var(--b-bg) 100%);
  overflow: hidden;
  aspect-ratio: 4 / 3.6;
}

.b-viewer-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.b-viewer-stage canvas.is-dragging { cursor: grabbing; }

.b-viewer-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 20px;
  background: rgba(8, 6, 13, 0.72);
  border: 1px solid var(--b-line);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--b-text-muted);
}

.b-viewer-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--b-accent);
}

.b-viewer-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 13px;
  border-radius: 20px;
  background: rgba(8, 6, 13, 0.7);
  border: 1px solid var(--b-line-soft);
  font-size: 11.5px;
  color: var(--b-text-muted);
  white-space: nowrap;
  transition: opacity 0.4s ease;
}

.b-viewer-hint.is-gone { opacity: 0; }

/* Shown only when WebGL cannot start */
.b-viewer-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 28px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--b-text-muted);
}

.b-viewer-stage.is-failed .b-viewer-fallback { display: flex; }

.b-viewer-stage.is-failed canvas,
.b-viewer-stage.is-failed .b-viewer-hint,
.b-viewer-stage.is-failed .b-viewer-badge { display: none; }

.b-viewer-caption {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--b-text-muted);
}

/* Stacked layout — viewer pinned below the header, which is sticky itself and
   sits above this in z-order. Anything less than the header height here and the
   top of the case disappears behind the bar. */
@media (max-width: 1079px) {
  .b-viewer {
    position: sticky;
    /* Measured against the condensed header, which is the only state where
       this element is actually pinned. */
    top: 68px;
    z-index: 20;
    margin-bottom: 8px;
    order: -1;
    /* The form scrolls underneath, so the whole pinned block needs to be
       opaque — otherwise the caption sits on top of the next question. */
    background: var(--b-bg);
    padding: 8px 0;
  }

  .b-form-layout { display: flex; flex-direction: column; }

  .b-viewer-stage {
    aspect-ratio: 16 / 10;
    max-height: 46vh;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  }

  .b-viewer-hint { display: none; }
}

/* Side by side — the viewer follows the reader down the form */
@media (min-width: 1080px) {
  .b-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 384px;
    gap: 32px;
    align-items: start;
  }

  .b-form-col { min-width: 0; }

  .b-viewer {
    position: sticky;
    top: 88px;
  }

  /* The trust strip belongs under both columns */
  .b-form-layout .b-trust { grid-column: 1 / -1; }

  /* The viewer takes a third of the width, so the question no longer gets its
     own column — it sits above a full-width answer row instead. Without this
     the option labels truncate. */
  .b-form-layout .b-step {
    grid-template-columns: 46px 1fr;
    gap: 12px 18px;
  }

  .b-form-layout .b-step-body { grid-column: 1 / -1; }
}

/* The builds header shrinks to 64px at this width, so the viewer follows it up */
@media (max-width: 768px) {
  .b-viewer { top: 65px; }
  .b-viewer-stage { max-height: 38vh; }
}
