/* ============================================
   Replacement page — supplemental styles
   ============================================ */

.nav.is-static {
  position: sticky;
  background: rgba(246,242,236,0.92);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

/* ---------- Page hero ---------- */
.page-hero {
  background: var(--bg);
  padding: 56px 0 0;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--ink); }

.ph-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.ph-lt h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.93;
  letter-spacing: -0.035em;
  margin: 24px 0 32px;
  font-variation-settings: "SOFT" 30;
}
.ph-lt h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.ph-lt .lede { max-width: 580px; margin: 0 0 32px; }
.ph-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.ph-rt {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 0;
}
.ph-spec {
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.ph-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ph-v {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 8px;
}
.ph-v em { font-style: italic; color: var(--accent); }
.ph-u {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ph-list { list-style: none; padding: 0; margin: 0; }
.ph-list li,
.ph-list .ph-stat {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.ph-list li:last-child,
.ph-list .ph-stat:last-child { border-bottom: none; }
.ph-stats .dt,
.ph-stats .dd { margin: 0; }
.ph-list .dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ph-list .dd {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 350;
  letter-spacing: -0.005em;
}

/* hero visual */
.ph-visual {
  margin: 0 calc(-1 * var(--gutter));
  padding: 56px var(--gutter) 0;
}
.ph-visual svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 460;
  border-radius: 0;
}
.ph-visual figcaption {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- When to replace ---------- */
.when-section { background: var(--paper); }
.signs-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.sign {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  background: var(--paper);
  transition: background .25s;
}
.sign:hover { background: var(--bg); }
.sign-n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 500;
}
.sign h4 {
  font-family: var(--display);
  font-weight: 350;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}
.sign p { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0; }

/* ---------- Compare ---------- */
.compare-section { background: var(--bg); }
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.compare-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
  transition: transform .3s ease;
}
.compare-card:hover { transform: translateY(-2px); }
.compare-card.is-feature {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  position: relative;
}
.compare-card.is-feature .compare-tag { color: var(--accent-soft); }
.compare-card.is-feature .compare-spec { border-color: rgba(255,255,255,0.18); }
.compare-card.is-feature .compare-spec > div { border-color: rgba(255,255,255,0.12); }
.compare-card.is-feature .compare-spec .k { color: rgba(255,255,255,0.6); }
.compare-card.is-feature ul li { border-color: rgba(255,255,255,0.15); }
.compare-card.is-feature .compare-when strong { color: var(--accent-soft); }
.compare-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare-card h3 {
  font-family: var(--display);
  font-weight: 350;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 4px 0 4px;
}
.compare-sub {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  opacity: 0.8;
}
.compare-spec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.compare-spec > div {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 12px;
  border-right: 1px solid var(--line);
}
.compare-spec > div:first-child { padding-left: 0; }
.compare-spec > div:last-child { border-right: none; padding-right: 0; }
.compare-spec .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare-spec .v {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 350;
  letter-spacing: -0.01em;
}
.compare-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.compare-card ul li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  display: flex; gap: 10px; align-items: baseline;
}
.compare-card ul li::before {
  content: "—"; color: var(--accent); flex: none;
}
.compare-card ul li:first-child { border-top: none; }
.compare-when { font-size: 14px; line-height: 1.5; margin: 0; opacity: 0.85; margin-top: auto; }
.compare-when strong { color: var(--accent); font-weight: 500; }

/* ---------- How (process specific) ---------- */
.how-section { background: var(--paper); border-top: 1px solid var(--line); }
.how-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.how-step {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 240px;
  position: relative;
}
.how-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 48px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.how-time {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.how-step h4 {
  font-family: var(--display);
  font-weight: 350;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 4px 0 0;
}
.how-step p { color: var(--ink-2); font-size: 14px; line-height: 1.5; margin: auto 0 0; }

/* ---------- Anatomy ---------- */
.anatomy-section { background: var(--bg); }
.anatomy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.anatomy-fig {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 0;
  position: sticky;
  top: 100px;
}
.anatomy-fig svg { width: 100%; height: auto; }
.anatomy-pin { cursor: pointer; transition: transform .2s; transform-origin: center; transform-box: fill-box; }
.anatomy-pin:hover, .anatomy-pin.is-active { transform: scale(1.15); }
.anatomy-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.anatomy-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.anatomy-list li.is-active { background: var(--paper); padding-left: 12px; padding-right: 12px; margin: 0 -12px; border-radius: var(--radius); }
.anatomy-list li.is-active .ap-n { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.ap-n {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: all .2s;
}
.anatomy-list h5 {
  font-family: var(--display);
  font-weight: 350;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.anatomy-list p { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0; }

/* ---------- Cost calculator ---------- */
.cost-section { background: var(--ink); color: var(--bg); }
.cost-section .eyebrow { color: var(--accent-soft); }
.cost-section .section-head h2 { color: #fff; }
.cost-section .section-head h2 em { color: var(--accent-soft); }
.cost-section .head-rt { color: rgba(255,255,255,0.7); }

.cost-card {
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.cost-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.cost-readout > div { display: flex; flex-direction: column; gap: 8px; }
.cost-readout .ph-k { color: var(--muted); }
.cost-num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 4px;
}
.cost-num em { font-style: italic; color: var(--accent); font-size: 0.7em; }
.cost-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  margin: 8px 0 16px;
}
.cost-range::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--line-2);
  border-radius: 2px;
}
.cost-range::-moz-range-track {
  height: 2px;
  background: var(--line-2);
  border-radius: 2px;
}
.cost-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  margin-top: -11px;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--accent);
}
.cost-range::-moz-range-thumb {
  width: 24px; height: 24px;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--accent);
}
.cost-scale {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.cost-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ---------- Materials ---------- */
.material-section { background: var(--paper); border-top: 1px solid var(--line); }
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.material-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s;
}
.material-card:hover { transform: translateY(-2px); }
.material-swatch {
  height: 160px;
  background:
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(0,0,0,0.04) 2px 3px),
    linear-gradient(180deg, var(--c1) 0%, var(--c2) 100%);
  border-bottom: 1px solid var(--line);
}
.material-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 24px 28px 0;
}
.material-card h4 {
  font-family: var(--display);
  font-weight: 350;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  padding: 0 28px;
}
.material-card h4 sup { font-size: 0.4em; vertical-align: super; opacity: 0.6; }
.material-card p { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0 0 24px; padding: 0 28px; }
.material-spec {
  margin: auto 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.material-spec > div {
  padding: 16px;
  border-right: 1px solid var(--line);
}
.material-spec > div:last-child { border-right: none; }
.material-spec dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.material-spec dd {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 350;
  margin: 0;
  letter-spacing: -0.005em;
}

/* ---------- Next pages ---------- */
.next-section { background: var(--bg); border-top: 1px solid var(--line); }
.next-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 32px;
  gap: 24px;
}
.next-head h3 {
  font-family: var(--display);
  font-weight: 350;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
}
.next-head h3 em { font-style: italic; color: var(--accent); }
.next-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.next-card {
  padding: 32px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  min-height: 200px;
  transition: background .25s;
  color: var(--ink);
  position: relative;
}
.next-card:last-child { border-right: none; }
.next-card:hover { background: var(--paper); }
.next-n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 500;
}
.next-card h4 {
  font-family: var(--display);
  font-weight: 350;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  flex: 1;
}
.next-arr {
  font-family: var(--display);
  font-size: 24px;
  align-self: flex-end;
  transition: transform .25s;
}
.next-card:hover .next-arr { transform: translateX(6px); color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ph-grid { grid-template-columns: 1fr; gap: 32px; }
  .signs-grid, .compare-grid, .how-grid, .material-grid { grid-template-columns: 1fr 1fr; }
  .anatomy-grid { grid-template-columns: 1fr; gap: 32px; }
  .anatomy-fig { position: static; }
  .next-grid { grid-template-columns: 1fr 1fr; }
  .next-card:nth-child(2) { border-right: none; }
  .next-card:nth-child(1), .next-card:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cost-readout { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 720px) {
  .ph-lt h1 { font-size: 56px; }
  .signs-grid, .compare-grid, .how-grid, .material-grid, .next-grid { grid-template-columns: 1fr; }
  .sign, .how-step, .next-card { border-right: none !important; }
  .compare-spec { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .cost-card { padding: 28px; }
  .next-head { flex-direction: column; align-items: flex-start; }
}
