:root {
  --bg: #f8f7f2;
  --bg-alt: #eeece4;
  --bg-card: #ffffff;
  --fg: #1d2230;
  --fg-dim: #5a5e6b;
  --accent: #ff5a3c;
  --accent-2: #d98a18;
  --border: #d8d8d0;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1100px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ──────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 247, 242, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav nav a {
  margin-left: 24px;
  color: var(--fg-dim);
  font-size: 0.95rem;
}

.nav nav a:hover { color: var(--fg); }

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(255, 90, 60, 0.10), transparent 70%),
    radial-gradient(700px 350px at 85% 30%, rgba(217, 138, 24, 0.08), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 800;
}

.lede {
  font-size: 1.1rem;
  color: var(--fg-dim);
  max-width: 48ch;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #ff7156; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--fg-dim); }

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.hero-media model-viewer {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  --poster-color: transparent;
  --progress-bar-color: var(--accent);
  --progress-mask: transparent;
}

/* ── Sections ─────────────────────────────────────────────────────── */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.section-alt { background: var(--bg-alt); }

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 36px;
  letter-spacing: -0.01em;
  font-weight: 800;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.95rem;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 90, 60, 0.12);
  display: grid;
  place-items: center;
}

.card-icon img { width: 24px; height: 24px; }

/* ── Holder section ───────────────────────────────────────────────── */

.holder-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.holder-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.holder-media model-viewer {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  --poster-color: transparent;
  --progress-bar-color: var(--accent);
  --progress-mask: transparent;
}

.mv-picker {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  z-index: 5;
}

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s ease, border-color 0.15s ease;
}

.swatch:hover { transform: scale(1.1); }
.swatch.is-active {
  border-color: var(--accent);
  transform: scale(1.15);
}

.mv-debug {
  margin-top: 8px;
  padding: 6px 10px;
  font-family: ui-monospace, 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 0.78rem;
  color: var(--fg-dim);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
  user-select: text;
  white-space: pre;
  overflow-x: auto;
}

/* ── How-it-works ─────────────────────────────────────────────────── */

.how-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}

.how-stage {
  position: relative;
}
.how-stage canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  /* Display-only scene — no drag interaction, so let touch scroll the page
     normally instead of the canvas capturing the gesture. */
  touch-action: auto;
  /* Sticky nav clearance when jumped to via #how-canvas anchor */
  scroll-margin-top: 84px;
}

.how-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 5;
  transition: opacity 0.4s ease;
}
.how-loading.is-done {
  opacity: 0;
  pointer-events: none;
}
.how-loading-bar {
  width: 55%;
  max-width: 240px;
  height: 5px;
  background: rgba(255, 90, 60, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.how-loading-fill {
  height: 100%;
  width: 35%;
  background: var(--accent);
  border-radius: 999px;
  transform: translateX(-100%);
  animation: howLoadingShimmer 1.4s ease-in-out infinite;
}
@keyframes howLoadingShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(385%); }
}

.how-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  counter-reset: how;
}

.how-steps li {
  counter-increment: how;
  margin: 0 0 10px;
}

.how-steps button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.06s;
}

.how-steps button::before {
  content: counter(how);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: rgba(255, 90, 60, 0.15);
  color: var(--accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.how-steps button:hover {
  border-color: var(--accent);
  background: rgba(255, 90, 60, 0.06);
  transform: translateX(4px);
  box-shadow: 0 4px 18px rgba(255, 90, 60, 0.12);
}
.how-steps button:hover .how-step-cta { background: var(--accent); color: #fff; }
.how-steps button:active { transform: translateY(1px); }

.how-step-label { flex: 1; }
.how-step-cta {
  margin-left: auto;
  padding: 4px 10px;
  background: rgba(255, 90, 60, 0.15);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.how-hint {
  margin: -10px 0 18px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* Resting pulse on the FIRST button so users see it's interactive */
@keyframes clickHintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, 0.45); }
  50%      { box-shadow: 0 0 0 10px rgba(255, 90, 60, 0); }
}
.how-steps:not(.how-interacted) li:first-child button:not(.is-active):not(.is-ready) {
  border-color: var(--accent);
  animation: clickHintPulse 2s ease-in-out infinite;
}

.how-steps button.is-active {
  border-color: var(--accent);
  background: rgba(255, 90, 60, 0.08);
}

.how-steps button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@keyframes fireReadyPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 90, 60, 0.55);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(255, 90, 60, 0);
    transform: scale(1.035);
  }
}

.how-steps button.is-ready {
  border-color: var(--accent);
  background: rgba(255, 90, 60, 0.12);
  color: var(--accent);
  animation: fireReadyPulse 1.4s ease-in-out infinite;
}
.how-steps button.is-ready::after {
  content: ' ←';
  font-weight: 800;
}

@media (max-width: 820px) {
  .how-grid { grid-template-columns: 1fr; gap: 36px; }
  /* Shorter viewer on mobile: height = 80% of width (20% smaller than the
     square desktop framing). */
  .how-stage canvas { aspect-ratio: 1.25 / 1; }
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.spec-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg-dim);
}

.spec-list li:last-child { border-bottom: none; }

.spec-list strong {
  color: var(--fg);
  margin-right: 6px;
}

/* ── CTA section ──────────────────────────────────────────────────── */

.section-cta { text-align: center; }
.section-cta .lede { margin: 0 auto 28px; }

.signup {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.signup input {
  flex: 1 1 240px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg);
  font-size: 0.95rem;
  font-family: inherit;
}

.signup input:focus {
  outline: none;
  border-color: var(--accent);
}

.signup-msg {
  flex-basis: 100%;
  color: var(--accent-2);
  margin: 12px 0 0;
}

/* ── Shop ─────────────────────────────────────────────────────────── */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 0 0 40px;
  text-align: left;
}

.product {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

.product-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.product-desc {
  margin: 0 0 18px;
  color: var(--fg-dim);
  font-size: 0.95rem;
}

.product-note {
  margin: 0 0 12px;
  color: var(--fg-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

.product-link {
  margin: 0 0 18px;
  font-size: 0.9rem;
}
.product-link a {
  color: var(--accent);
  font-weight: 600;
}
.product-link a:hover { color: var(--fg); }

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: auto 0 18px;
}

.price-amount {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.price-note {
  color: var(--fg-dim);
  font-size: 0.9rem;
}

.product-buy { width: 100%; }

.product-fineprint {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 0.78rem;
  line-height: 1.5;
}

.shop-subhead {
  margin: 40px 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
}

/* Secondary row — compact, photo-less tiles for single parts. */
.shop-grid-sm { margin-bottom: 0; }

.product-sm .product-body { padding: 22px 24px 24px; }
.product-sm h3 { font-size: 1.05rem; }
.product-sm .price-amount { font-size: 1.6rem; }

@media (max-width: 640px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* ── Bulk enquiry ─────────────────────────────────────────────────── */

.bulk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  text-align: left;
}

.bulk-note {
  color: var(--fg-dim);
  font-size: 0.95rem;
  margin: 0;
}

.bulk-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.bulk-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

.bulk-form .opt {
  color: var(--fg-dim);
  font-weight: 400;
}

.bulk-form input,
.bulk-form textarea {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-weight: 400;
}

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

.bulk-form textarea { resize: vertical; }

/* Honeypot — visually hidden, off-screen, but still in the DOM for bots. */
.bulk-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.bulk-form button { margin-top: 4px; }

.bulk-msg {
  margin: 4px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.bulk-msg.is-ok { color: var(--accent-2); }
.bulk-msg.is-error { color: var(--accent); }
.bulk-msg.is-warn { color: var(--accent-2); }

.btn.is-loading {
  opacity: 0.85;
  cursor: progress;
}

.btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 8px;
  vertical-align: -0.15em;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .bulk-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Assembly instructions page ───────────────────────────────────── */

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}
.back-link:hover { color: var(--fg); }

.tools-callout {
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.tools-callout h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}
.tools-callout ul {
  margin: 0;
  padding-left: 20px;
  color: var(--fg-dim);
}
.tools-callout li { margin-bottom: 6px; }
.tools-callout strong { color: var(--fg); }
.tools-note {
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--fg);
}

.assembly-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 18px;
}

.assembly-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.assembly-media {
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
}
.assembly-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assembly-text {
  padding: 18px 24px 18px 0;
}
.assembly-text p {
  margin: 0;
  font-size: 1.05rem;
  position: relative;
}
.assembly-text p::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 12px;
  vertical-align: -8px;
  background: rgba(255, 90, 60, 0.15);
  color: var(--accent);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .assembly-step { grid-template-columns: 1fr; }
  .assembly-media { border-right: none; border-bottom: 1px solid var(--border); aspect-ratio: 16 / 10; }
  .assembly-text { padding: 18px 20px; }
}

/* ── Footer ───────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--fg-dim);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.patent-pending {
  font-size: 0.8rem;
}
.patent-pending a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.patent-pending a:hover { color: var(--fg); }

.footer-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.footer-link:hover { color: var(--fg); }

/* Standalone contact form (contact.html) — constrain width on wide screens. */
.contact-form { max-width: 560px; }

/* ── Mobile ───────────────────────────────────────────────────────── */

@media (max-width: 820px) {
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .hero-grid,
  .holder-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav nav a { margin-left: 14px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  /* Collapse the nav to a single buy CTA pointing at the purchase tiles. */
  .nav nav a { display: none; }
  .nav nav a.nav-cta {
    display: inline-flex;
    align-items: center;
    margin-left: 0;
    padding: 8px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 700;
  }
  .nav nav a.nav-cta:hover { background: #ff7156; color: #fff; }
}
