/* ==========================================================================
   Meshed Labs — design system
   Additive manufacturing / precision engineering aesthetic.
   Hot-end amber + laser cyan on deep industrial navy.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* surfaces — warm-neutral deep dark (was cold blue-black) */
  --ink-900: #0c0d10;
  --ink-800: #111217;
  --ink-700: #16181e;
  --ink-600: #1c1f26;
  --ink-500: #242832;

  /* lines — deliberately faint, so surfaces and glows carry depth, not rules */
  --line: rgba(255, 255, 255, 0.055);
  --line-2: rgba(255, 255, 255, 0.10);

  /* type */
  --txt: #f0f2f6;
  --txt-2: #aeb6c2;
  --txt-3: #7d8797;

  /* brand — kept exact so CSS, the 3D graphics and the SVGs all match */
  --molten: #ff7a1a;
  --molten-d: #ffa45c;
  --molten-tint: rgba(255, 122, 26, 0.12);
  --laser: #29d8e6;
  --laser-tint: rgba(41, 216, 230, 0.12);
  --good: #4ade80;
  --warn: #fbbf24;

  /* geometry */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* rhythm */
  --gut: clamp(1.15rem, 4vw, 2.5rem);
  --sec-y: clamp(3.75rem, 8vw, 7rem);
  --maxw: 1200px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
    Consolas, monospace;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--txt);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--laser); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.35rem, 6.2vw, 4.15rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.65rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.32rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- 3. Layout ---------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: 860px; }

.sec { padding-block: var(--sec-y); position: relative; }
.sec--alt { background: var(--ink-800); }
.sec--edge { border-top: 1px solid var(--line); }

/* Soft ambient glow — depth without the old repeating line texture. */
.sec--layers::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.022), transparent 70%);
}

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 4. Type helpers --------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.735rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--molten);
  display: flex;
  align-items: center;
  gap: 0.7ch;
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--molten), transparent);
  flex: none;
}
.eyebrow--laser { color: var(--laser); }
.eyebrow--laser::before { background: linear-gradient(90deg, var(--laser), transparent); }

.lede {
  font-size: clamp(1.03rem, 1.5vw, 1.16rem);
  color: var(--txt-2);
  max-width: 66ch;
}
.mono { font-family: var(--mono); }
.muted { color: var(--txt-2); }
.dim { color: var(--txt-3); }
.hl { color: var(--molten-d); }
.hl-b { color: var(--laser); }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--molten);
  --btn-fg: #14100b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6ch;
  padding: 0.82em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 0.945rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease),
    box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 26px -12px rgba(255, 122, 26, 0.75);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--laser); outline-offset: 3px; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--txt);
  border-color: var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--molten); color: var(--molten-d); }

.btn--lg { padding: 0.95em 1.85em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--sm { padding: 0.6em 1.05em; font-size: 0.85rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- 6. Nav ------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 10, 14, 0.82);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  /* No gap here: it would space the icon AND the two wordmark spans apart.
     The icon carries its own margin so "Meshed" + "Labs" stay one word. */
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.07rem;
  color: var(--txt);
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 27px; height: 27px; flex: none; margin-right: 0.62rem; }
.brand b { font-weight: 700; }
.brand span { color: var(--txt-3); font-weight: 500; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--txt-2);
  font-size: 0.905rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
}
.nav__links a:hover { color: var(--txt); background: var(--ink-600); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--molten-d); }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__toggle span,
.nav__toggle::before,
.nav__toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 17px;
  height: 1.6px;
  background: var(--txt);
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav__toggle::before { top: 13px; }
.nav__toggle span { top: 19.5px; }
.nav__toggle::after { top: 26px; }
.nav__toggle[aria-expanded="true"]::before { transform: translateX(-50%) translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span { opacity: 0; }
.nav__toggle[aria-expanded="true"]::after { transform: translateX(-50%) translateY(-6.5px) rotate(-45deg); }

/* ---------- 7. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(3.2rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 46% at 76% 24%, rgba(255, 122, 26, 0.16), transparent 68%),
    radial-gradient(46% 40% at 12% 78%, rgba(41, 216, 230, 0.11), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 0.45em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--molten-d), var(--molten) 52%, var(--laser));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.85rem;
}
.chip {
  font-family: var(--mono);
  font-size: 0.775rem;
  letter-spacing: 0.03em;
  color: var(--txt-2);
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.34em 0.85em;
}
.chip b { color: var(--txt); font-weight: 600; }

/* Hero 3D figure. Babylon owns the canvas; the inline SVG is the fallback.
   Classes are named for their ROLE, not their contents, so swapping the hero
   artwork does not mean editing this file. Exactly one of the two is ever
   visible — see the is-live / is-fallback states set in assets/js/tesseract.js. */
.hero__fig {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}
.hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.hero-canvas:active { cursor: grabbing; }
.hero__fig.is-live .hero-canvas { opacity: 1; }

.hero-fallback {
  display: none;
  width: 100%;
  height: 100%;
}
.hero__fig.is-fallback .hero-fallback { display: block; }
.hero__fig.is-fallback .hero-canvas { display: none; }

.hero-fallback .ln {
  fill: none;
  stroke: rgba(255, 122, 26, 0.72);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-fallback .cy {
  fill: none;
  stroke: rgba(41, 216, 230, 0.72);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-fallback .fil { fill: rgba(41, 216, 230, 0.9); stroke: none; }

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.985); }
  50%      { opacity: 0.85; transform: scale(1.015); }
}

/* ---------- 8. Stat rail ------------------------------------------------- */
.rail {
  border-block: 1px solid var(--line);
  background: var(--ink-800);
}
.rail__in {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.rail__cell {
  padding: 1.55rem clamp(0.85rem, 2vw, 1.5rem);
  border-left: 1px solid var(--line);
}
.rail__cell:first-child { border-left: 0; }
.rail__n {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 700;
  color: var(--molten-d);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.rail__l {
  font-size: 0.845rem;
  color: var(--txt-3);
  margin-top: 0.15rem;
}

/* ---------- 9. Cards ----------------------------------------------------- */
.card {
  background: linear-gradient(168deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.15rem, 2.2vw, 1.65rem);
  position: relative;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 28px -18px rgba(0, 0, 0, 0.55);
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 44px -22px rgba(0, 0, 0, 0.7);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--txt-2); font-size: 0.945rem; margin: 0; }

.card__ico {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  margin-bottom: 1.05rem;
  background: var(--molten-tint);
  border: 1px solid rgba(255, 122, 26, 0.28);
  color: var(--molten);
}
.card__ico svg { width: 20px; height: 20px; }
.card--cyan .card__ico {
  background: var(--laser-tint);
  border-color: rgba(41, 216, 230, 0.28);
  color: var(--laser);
}

.card__tag {
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-3);
  display: block;
  margin-bottom: 0.65rem;
}

/* ---------- 10. Feature split -------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.split + .split { margin-top: var(--sec-y); }
.split__media {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, var(--ink-600), var(--ink-800));
  padding: clamp(1.5rem, 3vw, 2.4rem);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* The "printed stack" panel: a real 3D object rendered by assets/js/plates.js
   (a stack of build layers + a deposition beam), with an inline SVG fallback
   shown when WebGL or the Babylon.js CDN is unavailable. */
.stack-fig { position: relative; width: 100%; height: clamp(460px, 68vh, 780px); }
.stack-canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.stack-canvas:active { cursor: grabbing; }
.stack-canvas:focus,
.stack-canvas:focus-visible { outline: none; }
.stack-fig.is-live .stack-canvas { opacity: 1; }
.stack-fallback { display: none; width: 100%; height: 100%; }
.stack-fig.is-fallback .stack-fallback { display: block; }
.stack-fig.is-fallback .stack-canvas { display: none; }

/* Per-layer height indicators, positioned by 3D projection each frame. */
.stack-label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(0, -50%);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--txt-2);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.stack-fig.is-live .stack-label { opacity: 0.85; }
.stack-label::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-right: 0.5rem;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.6;
}

.spec-list { list-style: none; margin: 1.35rem 0 0; padding: 0; }
.spec-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.62rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.935rem;
  color: var(--txt-2);
}
.spec-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  background: var(--molten);
  transform: rotate(45deg);
}

/* ---------- 11. Tables --------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow-x: auto;
  background: var(--ink-800);
}
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.915rem;
  min-width: 640px;
}
table.t caption {
  text-align: left;
  padding: 1rem 1.15rem 0;
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-3);
}
table.t th {
  text-align: left;
  padding: 0.95rem 1.15rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--txt-3);
  font-weight: 500;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
table.t td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background 0.16s; }
table.t tbody tr:hover { background: var(--ink-700); }
table.t .num { font-family: var(--mono); white-space: nowrap; }
.t-price { color: var(--molten-d); font-weight: 600; }

/* ---------- 12. Estimator ------------------------------------------------ */
.estimator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, var(--ink-700), var(--ink-800));
  padding: clamp(1.25rem, 2.8vw, 2.2rem);
}
.field { margin-bottom: 1.1rem; }
.field > label,
.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.735rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 0.5rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  background: var(--ink-900);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem;
  color: var(--txt);
  font-size: 0.945rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
textarea { min-height: 118px; resize: vertical; }
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--molten);
  box-shadow: 0 0 0 3px var(--molten-tint);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236f8296' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.3rem;
}
.hint { font-size: 0.815rem; color: var(--txt-3); margin: 0.4rem 0 0; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }

/* price readout */
.readout {
  background: var(--ink-900);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
}
.readout__head {
  font-family: var(--mono);
  font-size: 0.735rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--txt-3);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.readout__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.925rem;
  color: var(--txt-2);
  border-bottom: 1px dashed var(--line);
}
.readout__row span:last-child { font-family: var(--mono); color: var(--txt); }
.readout__row.is-off span { color: var(--good); }
.readout__total {
  margin-top: auto;
  padding-top: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.readout__total b {
  font-family: var(--mono);
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  color: var(--molten-d);
  letter-spacing: -0.03em;
}
.readout__note {
  font-size: 0.815rem;
  color: var(--txt-3);
  margin: 0.9rem 0 1.1rem;
  line-height: 1.5;
}

/* range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 100px;
  background: linear-gradient(
    90deg,
    var(--molten) 0%,
    var(--molten) var(--fill, 30%),
    var(--line-2) var(--fill, 30%),
    var(--line-2) 100%
  );
  padding: 0;
  border: 0;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--txt);
  border: 3px solid var(--molten);
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--txt);
  border: 3px solid var(--molten);
  cursor: grab;
}

/* material quick-pick */
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.pick__opt {
  border: 1px solid var(--line-2);
  background: var(--ink-900);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.5rem;
  text-align: center;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--txt-2);
  transition: all 0.16s var(--ease);
}
.pick__opt:hover { border-color: var(--line-2); color: var(--txt); }
.pick__opt[aria-pressed="true"] {
  border-color: var(--molten);
  background: var(--molten-tint);
  color: var(--txt);
}
.pick__opt small {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--txt-3);
  margin-top: 2px;
}
.pick__opt[aria-pressed="true"] small { color: var(--molten-d); }

/* ---------- 13. Steps ---------------------------------------------------- */
.steps { counter-reset: s; display: grid; gap: 0.7rem; }
.step {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.05rem, 2.2vw, 1.5rem);
  display: flex;
  gap: 1.05rem;
  align-items: flex-start;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.step:hover { background: var(--ink-600); border-color: var(--line-2); transform: translateY(-2px); }
.step__n {
  counter-increment: s;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--molten);
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: var(--r-sm);
  background: var(--molten-tint);
}
.step__n::before { content: "0" counter(s); }
.step h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.step p { font-size: 0.915rem; color: var(--txt-2); margin: 0; }

/* ---------- 14. FAQ ------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq summary {
  cursor: pointer;
  padding: 1.15rem 0;
  font-weight: 600;
  font-size: 1.005rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--molten);
  flex: none;
  transition: transform 0.24s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 2.5rem 1.35rem 0; color: var(--txt-2); font-size: 0.945rem; }

/* ---------- 15. CTA band ------------------------------------------------- */
.cta {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(1.85rem, 4.5vw, 3.25rem);
  text-align: center;
  background:
    radial-gradient(70% 130% at 50% 0%, rgba(255, 122, 26, 0.14), transparent 62%),
    linear-gradient(180deg, var(--ink-700), var(--ink-800));
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cta h2 { margin-bottom: 0.5em; }
.cta .btn-row { justify-content: center; position: relative; }

/* ---------- 16. Footer --------------------------------------------------- */
.foot { border-top: 1px solid var(--line); background: var(--ink-800); padding-block: clamp(2.4rem, 5vw, 3.6rem) 1.75rem; }
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.foot h4 {
  font-family: var(--mono);
  font-size: 0.735rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 0.95rem;
  font-weight: 500;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.foot a { color: var(--txt-2); font-size: 0.91rem; }
.foot a:hover { color: var(--molten-d); }
.foot p { color: var(--txt-2); font-size: 0.91rem; max-width: 40ch; }
.foot__bar {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  color: var(--txt-3);
}
.social { display: flex; gap: 0.5rem; margin-top: 1.05rem; }
.social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--txt-2);
}
.social a:hover { border-color: var(--molten); color: var(--molten-d); text-decoration: none; }
.social svg { width: 16px; height: 16px; }

/* ---------- 17. Reveal --------------------------------------------------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-2 { transition-delay: 0.08s; }
.rv-3 { transition-delay: 0.16s; }
.rv-4 { transition-delay: 0.24s; }
.rv-5 { transition-delay: 0.32s; }
.rv-6 { transition-delay: 0.4s; }

/* ---------- 18. Responsive ----------------------------------------------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__fig { max-width: 440px; margin-inline: auto; order: -1; }
  .estimator { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
}

@media (max-width: 780px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-800);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gut) 1rem;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { display: block; padding: 0.8rem 0.4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links li:last-child { margin-top: 0.85rem; }
  .nav__links li:last-child a {
    background: var(--molten);
    color: #14100b;
    text-align: center;
    font-weight: 650;
    border: 0;
    border-radius: var(--r-sm);
  }
  .nav__links li:last-child a:hover { filter: brightness(1.07); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .rail__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail__cell:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .rail__cell:nth-child(4) { border-top: 1px solid var(--line); }
  .foot__grid { grid-template-columns: 1fr; }
  .pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .rail__in { grid-template-columns: 1fr; }
  .rail__cell { border-left: 0; border-top: 1px solid var(--line); }
  .rail__cell:first-child { border-top: 0; }
  .row-2 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .cta .btn-row { flex-direction: column; align-items: stretch; }
}

/* ---------- 19. Motion / print ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rv { opacity: 1; transform: none; }
}

@media print {
  .nav, .hero__fig, .cta, .foot { display: none; }
  body { background: #fff; color: #000; }
}
