/* Nav mega-menu + Phase 2 additions */

.nv-nav__li { position: static; }
.nv-nav__li > a {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--ink-2); padding: 10px 0;
  transition: color .15s;
}
.nv-nav__li > a:hover, .nv-nav__li.is-on > a { color: var(--ink); }
.nv-nav__caret { font-size: 9px; opacity: 0.5; }
.nv-nav__flag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  padding: 2px 5px; background: var(--accent); color: #fff; border-radius: 3px;
  margin-left: 4px;
}
.nv-nav.is-open { background: var(--bg); border-bottom-color: var(--rule); }

.nv-mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  animation: megaIn .18s ease-out;
}
@keyframes megaIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nv-mega__inner {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 32px;
}
.nv-mega__eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px;
}
.nv-mega__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.nv-mega__list a {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  padding: 16px 20px 16px 0; border-top: 1px solid var(--rule);
  column-gap: 16px;
  transition: padding .15s, color .15s;
}
.nv-mega__list a:hover { padding-left: 8px; color: var(--ink); }
.nv-mega__t {
  grid-column: 1; font-family: var(--serif); font-size: 22px;
  letter-spacing: -0.005em; color: var(--ink);
}
.nv-mega__s {
  grid-column: 1; grid-row: 2; font-size: 13px; color: var(--ink-3); margin-top: 4px;
}
.nv-mega__arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink-3); }
.nv-mega__list a:hover .nv-mega__arrow { color: var(--accent); transform: translateX(3px); }

/* ---- Landing: 3-card product grid ---- */
.nv-products {
  max-width: var(--max); margin: 0 auto;
  padding: 60px var(--gutter) 0;
}
.nv-products__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.nv-product {
  display: flex; flex-direction: column;
  padding: 28px 28px 32px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.nv-product:last-child { border-right: none; }
.nv-product__n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3); margin-bottom: 20px; display: flex; justify-content: space-between; }
.nv-product__flag { color: var(--accent); }
.nv-product__img { margin: 0 -28px 24px; }
.nv-product__t { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -0.015em; margin: 0 0 12px; }
.nv-product__body { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin: 0 0 20px; }
.nv-product__price {
  padding-top: 14px; border-top: 1px solid var(--rule); margin-bottom: 20px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.nv-product__pk { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.nv-product__pv { font-family: var(--serif); font-size: 22px; }
.nv-product__cta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nv-product__cta a.nv-btn { flex: 0 0 auto; }
.nv-product__quote { font-size: 13px; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.nv-product__quote:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---- Before/After slider ---- */
.nv-bagrid {
  margin-top: 40px; position: relative; user-select: none;
  aspect-ratio: 21/9; overflow: hidden; background: #1a1918;
}
.nv-bagrid__layer { position: absolute; inset: 0; }
.nv-bagrid__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.nv-bagrid__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: #fff; transform: translateX(-1px);
  cursor: ew-resize;
}
.nv-bagrid__knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #111;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.nv-bagrid__tag {
  position: absolute; top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,0.55); padding: 6px 10px;
  backdrop-filter: blur(6px);
}
.nv-bagrid__tag--before { left: 16px; }
.nv-bagrid__tag--after  { right: 16px; }

/* ---- About: Spine section ---- */
.nv-spine__diagram {
  margin-top: 24px; padding: 40px;
  background: var(--bg-2); border: 1px solid var(--rule);
}
.nv-spine__svg { display: block; width: 100%; max-width: 900px; margin: 0 auto; }

/* ---- Configurator page ---- */
.nv-cfg {
  padding: 104px 0 0;
  min-height: 100vh;
  display: grid; grid-template-columns: 256px 1fr 304px;
  height: 100vh;
}
.nv-cfg__pane {
  border-right: 1px solid var(--rule);
  overflow-y: auto; padding: 24px;
  background: var(--bg);
}
.nv-cfg__pane:last-child { border-right: none; border-left: 1px solid var(--rule); }
.nv-cfg__stage {
  background:
    radial-gradient(ellipse at center, var(--bg) 0%, var(--bg-2) 100%);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.nv-cfg__toolbar {
  padding: 14px 20px; border-bottom: 1px solid var(--rule);
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.nv-cfg__views { display: flex; gap: 0; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.nv-cfg__views button {
  padding: 5px 13px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); background: transparent;
  border-right: 1px solid var(--rule); transition: background .15s, color .15s;
}
.nv-cfg__views button:last-child { border-right: 0; }
.nv-cfg__views button:hover { color: var(--ink); background: var(--bg-2); }
.nv-cfg__views button.is-on { background: var(--ink); color: var(--bg); }

.nv-cfg__canvas { flex: 1; position: relative; }

.nv-cfg__h {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 12px; padding-top: 4px;
}
.nv-cfg__h:not(:first-child) { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); }

.nv-cfg__row { display: flex; gap: 8px; margin-bottom: 8px; }
.nv-cfg__row input[type="number"], .nv-cfg__row select {
  width: 100%; border: 1px solid var(--rule); background: var(--bg);
  padding: 10px 12px; font-family: var(--sans); font-size: 14px; color: var(--ink);
  outline: none;
}
.nv-cfg__row input:focus, .nv-cfg__row select:focus { border-color: var(--ink); }
.nv-cfg__mini { font-size: 11px; color: var(--ink-3); margin-top: -4px; margin-bottom: 8px; }

.nv-cfg__seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 10px; }
.nv-cfg__seg button { background: var(--bg); padding: 8px 10px; font-size: 12px; color: var(--ink-2); }
.nv-cfg__seg button.is-on { background: var(--ink); color: var(--bg); }

.nv-cfg__mat { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.nv-cfg__mat button {
  display: flex; flex-direction: column; gap: 6px; padding: 8px;
  border: 1px solid var(--rule); background: var(--bg); text-align: left; font-size: 11px;
}
.nv-cfg__mat button.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.nv-cfg__mat-sw { width: 100%; aspect-ratio: 2/1; border-radius: 2px; }

.nv-cfg__catalog { display: flex; flex-direction: column; gap: 6px; }
.nv-cfg__item {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center;
  padding: 10px; border: 1px solid var(--rule); background: var(--bg);
  cursor: grab;
}
.nv-cfg__item:hover { border-color: var(--ink-3); }
.nv-cfg__item:active { cursor: grabbing; }
.nv-cfg__item-ic { width: 42px; height: 42px; background: var(--bg-2); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; }
.nv-cfg__item-t { font-family: var(--serif); font-size: 15px; }
.nv-cfg__item-s { font-size: 11px; color: var(--ink-3); font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.nv-cfg__item-p { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

.nv-cfg__quote { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; }
.nv-cfg__line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-2); font-size: 13px; align-items: center; }
.nv-cfg__line-t { color: var(--ink); }
.nv-cfg__line-n { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.nv-cfg__line-p { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.nv-cfg__line-x { background: transparent; color: var(--ink-3); border: 0; font-size: 14px; padding: 0 4px; cursor: pointer; }
.nv-cfg__line-x:hover { color: var(--accent); }

.nv-cfg__qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); }
.nv-cfg__qty button { padding: 2px 8px; font-size: 14px; color: var(--ink-2); }
.nv-cfg__qty-v { padding: 2px 8px; font-family: var(--mono); font-size: 12px; min-width: 18px; text-align: center; }

.nv-cfg__total { padding: 14px 0; margin-top: 8px; border-top: 1px solid var(--rule); }
.nv-cfg__subl { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--ink-2); }
.nv-cfg__totalrow { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 6px; border-top: 1px solid var(--rule); margin-top: 8px; }
.nv-cfg__totalk { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.nv-cfg__totalv { font-family: var(--serif); font-size: 34px; letter-spacing: -0.01em; }
.nv-cfg__taxnote { margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--ink-3); }

.nv-cfg__finance { margin-top: 12px; padding: 12px; background: var(--bg-2); border: 1px solid var(--rule); }
.nv-cfg__finance-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.nv-cfg__finance-v { font-family: var(--serif); font-size: 22px; }
.nv-cfg__finance-r { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 8px; }
.nv-cfg__finance input[type=range] { width: 100%; margin: 8px 0 0; accent-color: var(--accent); }

.nv-cfg__ctas { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.nv-cfg__ctas .nv-btn { justify-content: center; width: 100%; }

.nv-cfg__notice {
  margin: 12px 0 0; padding: 10px 12px; font-size: 12px; border-radius: 8px;
  background: var(--bg-2); border-left: 3px solid var(--ink-3); color: var(--ink);
}
.nv-cfg__notice--ok { border-left-color: var(--accent); background: color-mix(in oklch, var(--accent) 12%, var(--bg)); }
.nv-cfg__notice--err { border-left-color: #c0392b; background: color-mix(in oklch, #c0392b 10%, var(--bg)); }

.nv-cfg__warn {
  margin: 8px 0 0; padding: 10px 12px; font-size: 12px;
  background: color-mix(in oklch, var(--accent) 12%, var(--bg));
  border-left: 3px solid var(--accent); color: var(--ink);
}

/* ---- Iso canvas ---- */
.iso-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.iso-svg { display: block; }
.iso-fix {
  cursor: move; transition: filter .15s;
}
.iso-fix.is-sel { filter: drop-shadow(0 0 0 var(--accent)); }
.iso-chip {
  position: absolute; top: 20px; left: 20px;
  background: var(--ink); color: var(--bg); padding: 8px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}

@media (max-width: 1100px) {
  .nv-products__grid { grid-template-columns: 1fr; }
  .nv-product { border-right: none; border-bottom: 1px solid var(--rule); }
  .nv-product:last-child { border-bottom: none; }
  .nv-mega__list { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nv-cfg { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .nv-cfg__pane { max-height: 360px; border-right: none; border-left: none; border-bottom: 1px solid var(--rule); }
  .nv-cfg__pane:last-child { border-bottom: none; }
  .nv-cfg__stage { min-height: 520px; }
}

/* -------- Predefined kit cards (Two ways → kits tab) -------- */
.nv-kits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.nv-kit { padding: 36px 28px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.nv-kit:last-child { border-right: none; }
.nv-kit__top { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.nv-kit__size { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--accent); }
.nv-kit__name { font-family: var(--serif); font-size: 30px; letter-spacing: -0.01em; }
.nv-kit__best { font-size: 15px; color: var(--ink-2); margin: 0 0 20px; }
.nv-kit__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.nv-kit__list li { font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; }
.nv-kit__cta { margin-top: auto; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-top: 1px solid var(--rule); padding-top: 18px; }
.nv-kit__cta:hover { color: var(--accent); }

/* -------- Nova Grid proof band -------- */
.nv-gridproof { padding-top: 56px; padding-bottom: 56px; }
.nv-gridproof__head { max-width: 720px; margin-bottom: 36px; }
.nv-gridproof__lede { font-size: 18px; color: var(--ink-2); margin: 14px 0 0; }
.nv-gridproof__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.nv-gridproof .nv-stat { padding: 28px 24px 4px; border-right: 1px solid var(--rule); }
.nv-gridproof .nv-stat:last-child { border-right: none; }
.nv-gridproof .nv-stat__n { font-size: clamp(30px, 3.2vw, 48px); }

/* -------- Final CTA scarcity line -------- */
.nv-final__scarcity { font-size: 14px; color: var(--ink-3); max-width: 60ch; margin: -8px 0 28px; }

@media (max-width: 1100px) {
  .nv-kits { grid-template-columns: 1fr; }
  .nv-kit { border-right: none; border-bottom: 1px solid var(--rule); }
  .nv-kit:last-child { border-bottom: none; }
  .nv-gridproof__stats { grid-template-columns: repeat(2, 1fr); }
  .nv-gridproof .nv-stat:nth-child(2) { border-right: none; }
}
