/* Components — section-specific styles */

/* Problem + Terminal */
.problem-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 980px) { .problem-grid { grid-template-columns: 1fr; gap: 32px; } }
.problem-grid .left { border-left: 1px solid var(--border); padding-left: 28px; position: relative; }
.problem-grid .left::after {
  content: ""; position: absolute; left: -2px; top: 50%; width: 3px; height: 14px;
  background: var(--red); transform: translateY(-50%) skewY(-30deg);
}
.problem-grid p + p { margin-top: 14px; }

.terminal {
  background: var(--surface-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,0.5);
}
.term-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--code-bg);
  border-bottom: 1px solid var(--border);
}
.term-chrome .dot { width: 11px; height: 11px; border-radius: 50%; }
.term-chrome .dot.r { background: #ff5f57; }
.term-chrome .dot.y { background: #febc2e; }
.term-chrome .dot.g { background: #28c840; }
.term-chrome .title { margin-left: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.term-actions { margin-left: auto; display: flex; gap: 8px; }
.term-actions button {
  background: transparent; border: 1px solid var(--border-2); color: var(--muted);
  padding: 4px 10px; border-radius: 6px; font-family: var(--font-mono); font-size: 11px;
  transition: color 160ms, border-color 160ms;
}
.term-actions button:hover { color: var(--text); border-color: var(--red); }

.term-body {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 18px 18px 22px;
  min-height: 380px;
  white-space: pre-wrap;
  color: var(--text-soft);
}
.term-body .prompt { color: var(--red); }
.term-body .ok { color: #6FCF97; }
.term-body .warn { color: #F2C94C; }
.term-body .err { color: #FF5F57; }
.term-body .dim { color: var(--muted-2); }
.term-body .acc { color: var(--text); }
.term-cursor {
  display: inline-block; width: 8px; height: 14px; background: var(--red); margin-left: 2px;
  vertical-align: middle; animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Scoper */
.scoper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px) { .scoper { grid-template-columns: 1fr; } }

.stepper {
  display: flex; gap: 8px; margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.stepper .step {
  flex: 1 1 auto;
  min-width: 130px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-1);
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.stepper .step.active { border-color: var(--red); color: var(--text); background: rgba(230,57,70,0.05); }
.stepper .step.done { color: #6FCF97; border-color: var(--border-2); }
.stepper .step .num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
.stepper .step.active .num { background: var(--red); color: #fff; }
.stepper .step.done .num { background: rgba(111,207,151,0.15); color: #6FCF97; }

.scoper-panel {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  min-height: 420px;
}
.scoper-panel h4 { font-size: 18px; margin-bottom: 6px; }
.scoper-panel .help { font-size: 13px; color: var(--muted); margin-bottom: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  padding: 9px 14px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--font-sans);
  transition: all 160ms ease;
}
.chip-btn:hover { color: var(--text); border-color: var(--border-2); }
.chip-btn.on {
  border-color: var(--red);
  color: var(--chip-on-text);
  background: rgba(230,57,70,0.12);
  box-shadow: 0 0 0 1px rgba(230,57,70,0.4), 0 4px 18px rgba(230,57,70,0.15);
}

.slider-row { margin-top: 20px; }
.slider-row label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--muted); font-family: var(--font-mono);
  margin-bottom: 8px;
}
.slider-row label .val { color: var(--text); font-size: 14px; }
.slider-row input[type=range] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 6px; background: var(--surface-3); border-radius: 3px; outline: none;
}
.slider-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--slider-thumb-border);
  box-shadow: 0 0 0 1px var(--red), 0 0 12px rgba(230,57,70,0.6);
  cursor: pointer;
}
.slider-row input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--slider-thumb-border);
}

.timeline-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .timeline-cards { grid-template-columns: 1fr; } }
.timeline-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
  transition: all 160ms ease;
  text-align: left;
  color: var(--text);
}
.timeline-card:hover { border-color: var(--border-2); }
.timeline-card.on { border-color: var(--red); background: rgba(230,57,70,0.07); }
.timeline-card .t { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.timeline-card .d { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

.scoper-form { display: grid; gap: 12px; }
.scoper-form input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms;
}
.scoper-form input:focus { border-color: var(--red); }

.scoper-nav { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }

.estimate-card {
  position: sticky;
  top: 100px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  overflow: hidden;
}
.estimate-card.urgent { border-color: rgba(230,57,70,0.5); box-shadow: var(--shadow-red); }
.estimate-card .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.estimate-card .price {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.estimate-card .alt-currency { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.estimate-card .duration { font-family: var(--font-mono); font-size: 14px; color: var(--text-soft); margin-top: 14px; }
.estimate-card hr { border: 0; height: 1px; background: var(--border); margin: 18px 0; }
.estimate-card .deliv h5, .estimate-card .scope-summary h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 500; margin: 0 0 10px; font-family: var(--font-mono); }
.estimate-card .deliv ul { list-style: none; padding: 0; margin: 0; }
.estimate-card .deliv li { font-size: 13px; color: var(--text-soft); padding: 4px 0; padding-left: 16px; position: relative; line-height: 1.45; }
.estimate-card .deliv li::before { content: "+"; position: absolute; left: 0; color: var(--red); font-family: var(--font-mono); }
.estimate-card .scope-summary p { font-size: 13px; color: var(--text-soft); margin: 0; line-height: 1.5; }
.estimate-card .note { font-size: 11px; color: var(--muted-2); margin-top: 18px; line-height: 1.5; font-style: italic; }
.estimate-card .frame-mapping { margin-top: 14px; }
.estimate-card .frame-mapping .map-row { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding: 5px 0; border-top: 1px dashed var(--border); }
.estimate-card .frame-mapping .map-row:first-child { border-top: 0; }
.estimate-card .frame-mapping .map-row span { color: var(--text); }

.scoper-success {
  text-align: center;
  padding: 40px 20px;
}
.scoper-success .ok { color: #6FCF97; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.scoper-success h4 { font-size: 24px; margin: 14px 0 10px; }
.scoper-success p { font-size: 14px; color: var(--muted); }

/* Services bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
  position: relative;
}
.bento .cell {
  grid-column: span 2;
  background: var(--surface-1);
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease;
  display: flex; flex-direction: column;
  z-index: 1;
}
.bento .cell.wide { grid-column: span 4; }
.bento .cell:hover { transform: translateY(-3px); border-color: var(--border-2); }
.bento .cell:hover .edge { transform: scaleX(1); }
.bento .cell .edge {
  position: absolute; top: 0; right: 0; width: 28%; height: 1px;
  background: var(--red);
  transform-origin: right; transform: scaleX(0);
  transition: transform 280ms ease;
}
.bento .cell .icon { width: 40px; height: 40px; margin-bottom: 18px; color: var(--text); }
.bento .cell h4 { font-size: 18px; margin-bottom: 8px; font-weight: 500; }
.bento .cell .desc { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.bento .cell ul { list-style: none; padding: 0; margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.bento .cell ul li { padding: 4px 0; padding-left: 14px; position: relative; }
.bento .cell ul li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--red);
}
.bento .cell .more { margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--muted); opacity: 0.55; transition: opacity 200ms, color 200ms; font-family: var(--font-mono); }
.bento .cell:hover .more, .bento .cell:focus-visible .more { opacity: 1; color: var(--red); }
.bento .cell:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.bento-glow {
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,57,70,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 200ms;
  opacity: 0;
}
.bento:hover .bento-glow { opacity: 1; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .cell, .bento .cell.wide { grid-column: span 2; }
}

/* Compliance Matrix */
.matrix-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.region-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.region-pill.on { background: var(--red); color: #fff; border-color: var(--red); }

.matrix-wrap {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.matrix-scroll { overflow-x: auto; }
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
  font-size: 13px;
}
.matrix-table th, .matrix-table td {
  text-align: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.matrix-table th { background: var(--surface-2); color: var(--muted); font-weight: 500; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; position: sticky; top: 0; z-index: 2; }
.matrix-table td:first-child, .matrix-table th:first-child {
  text-align: left;
  position: sticky; left: 0;
  background: var(--surface-1);
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--text);
  z-index: 3;
  min-width: 260px;
}
.matrix-table th:first-child { background: var(--surface-2); }
.matrix-table .group-row td {
  background: var(--code-bg);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
}
.matrix-table tr:hover td { background: rgba(230,57,70,0.04); }
.matrix-table .clause { color: var(--muted-2); font-size: 11px; font-family: var(--font-mono); margin-top: 2px; }
.matrix-table .cell-yes {
  color: var(--red); font-family: var(--font-mono); font-size: 16px; cursor: pointer;
}
.matrix-table .cell-no { color: var(--muted-2); font-family: var(--font-mono); }
.matrix-table tr.disabled td { opacity: 0.5; font-style: italic; }
.matrix-table tr.expanded { background: rgba(230,57,70,0.03); }
.matrix-detail {
  padding: 20px 28px;
  background: var(--code-bg);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}
.matrix-detail strong { color: var(--text); }
.matrix-detail .close { float: right; cursor: pointer; color: var(--muted); font-family: var(--font-mono); font-size: 11px; }

/* Deadline tracker */
.deadlines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .deadlines { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .deadlines { grid-template-columns: 1fr; } }
.deadline {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.deadline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  background-size: 200% 100%;
  animation: fracture-flow 4s linear infinite;
  opacity: 0.6;
}
.deadline.urgent::after { animation-duration: 1.6s; opacity: 1; }
@keyframes fracture-flow { 0% { background-position: -100% 0; } 100% { background-position: 100% 0; } }
.deadline .juris { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.deadline h4 { font-size: 17px; line-height: 1.25; margin-bottom: 14px; min-height: 50px; }
.deadline .countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.deadline .ct-cell { background: var(--surface-2); border-radius: 6px; padding: 10px 4px; text-align: center; }
.deadline .ct-cell .num { font-family: var(--font-mono); font-size: 18px; font-weight: 500; color: var(--text); }
.deadline .ct-cell .lbl { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.deadline .desc { font-size: 12px; color: var(--muted); line-height: 1.5; min-height: 60px; }
.deadline .est-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(242,201,76,0.14);
  color: #F2C94C;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  margin-left: 6px;
  vertical-align: middle;
}

/* Methodology */
.methodology {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .methodology { grid-template-columns: 1fr; } }
.phase {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 280px;
}
.phase .num {
  font-family: var(--font-mono); font-size: 56px; font-weight: 500;
  color: var(--surface-3);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
}
.phase h4 { font-size: 18px; margin-bottom: 6px; }
.phase .timing { font-family: var(--font-mono); font-size: 11px; color: var(--red); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.phase .desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; flex: 1; }
.phase .mini {
  background: var(--surface-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  min-height: 64px;
}
.phase .mini .badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 500; }
.phase .mini .badge.open { background: rgba(255,95,87,0.15); color: #FF5F57; }
.phase .mini .badge.resolved { background: rgba(111,207,151,0.15); color: #6FCF97; }

.deliverable-card {
  margin-top: 32px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.deliverable-card h4 { font-size: 18px; margin-bottom: 12px; }
.deliverable-card p { color: var(--text-soft); font-size: 14px; line-height: 1.65; max-width: 90ch; }

/* Tools */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .tools { grid-template-columns: 1fr; } }
.tool {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex; flex-direction: column;
}
.tool h4 { font-size: 18px; margin-bottom: 6px; }
.tool .help { font-size: 12px; color: var(--muted); font-family: var(--font-mono); margin-bottom: 18px; letter-spacing: 0.04em; }
.cvss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cvss-grid label { font-family: var(--font-mono); font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.cvss-grid select {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 6px 8px; border-radius: 6px; font-family: var(--font-mono); font-size: 12px;
}
.cvss-output {
  margin-top: 16px;
  padding: 14px;
  background: var(--surface-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
}
.cvss-output .score { font-size: 28px; font-weight: 500; }
.cvss-output .sev { font-size: 12px; padding: 3px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.cvss-output .sev.critical { background: rgba(230,57,70,0.18); color: var(--red); }
.cvss-output .sev.high { background: rgba(242,153,74,0.18); color: #F2994A; }
.cvss-output .sev.medium { background: rgba(242,201,76,0.18); color: #F2C94C; }
.cvss-output .sev.low { background: rgba(155,164,180,0.16); color: #9BA4B4; }
.cvss-output .sev.none { background: rgba(155,164,180,0.1); color: var(--muted); }
.cvss-output .vec { font-size: 11px; color: var(--muted); margin-top: 8px; word-break: break-all; }

.gap-q {
  border-top: 1px solid var(--border);
  padding: 14px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 13px;
}
.gap-q:first-of-type { border-top: 0; }
.gap-q .qtxt { color: var(--text-soft); line-height: 1.4; }
.gap-q .yn { display: flex; gap: 6px; flex-shrink: 0; }
.gap-q button {
  width: 36px; height: 28px; border-radius: 6px; font-family: var(--font-mono); font-size: 11px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.gap-q button.on-y { background: rgba(111,207,151,0.18); color: #6FCF97; border-color: #6FCF97; }
.gap-q button.on-n { background: rgba(230,57,70,0.18); color: var(--red); border-color: var(--red); }
.gap-progress { height: 4px; background: var(--surface-3); border-radius: 2px; margin-top: 14px; overflow: hidden; }
.gap-progress .fill { height: 100%; background: var(--red); transition: width 240ms ease; }
.gap-result { margin-top: 14px; padding: 14px; background: var(--surface-deep); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--text-soft); }

.recon-input { display: flex; gap: 8px; }
.recon-input input {
  flex: 1; padding: 10px 12px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); border-radius: 6px; font-family: var(--font-mono); font-size: 13px; outline: none;
}
.recon-input input:focus { border-color: var(--red); }
.recon-output {
  margin-top: 14px; padding: 14px; background: var(--surface-deep); border: 1px solid var(--border);
  border-radius: 8px; font-family: var(--font-mono); font-size: 12px; min-height: 200px;
  color: var(--text-soft); white-space: pre-wrap; line-height: 1.6;
}
.recon-output .demo-note { font-size: 10px; color: var(--muted-2); display: block; margin-bottom: 10px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Proof */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .proof { grid-template-columns: 1fr; } }
.proof-col {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}
.proof-col h4 { font-size: 16px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.cert-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cert {
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  position: relative;
}
.cert .desc { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.cert:hover { border-color: var(--red); }

.stat-counters { display: grid; gap: 18px; }
.stat {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.stat:last-child { border-bottom: 0; }
.stat .num { font-family: var(--font-mono); font-size: 32px; font-weight: 500; color: var(--text); letter-spacing: -0.02em; }
.stat .lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }

.vuln-list { display: grid; gap: 8px; margin-top: 16px; }
.vuln {
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.vuln .lbl { color: var(--text-soft); }
.vuln .ass { color: var(--muted); }
.vuln .badge { padding: 2px 6px; border-radius: 3px; font-size: 10px; }
.vuln .badge.disclosed { background: rgba(111,207,151,0.18); color: #6FCF97; }
.vuln .badge.embargo { background: rgba(242,201,76,0.18); color: #F2C94C; }

.lineage { list-style: none; padding: 0; margin: 0; font-family: var(--font-mono); font-size: 12px; }
.lineage li {
  padding: 9px 0;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  position: relative;
  padding-left: 18px;
}
.lineage li::before {
  content: "/"; position: absolute; left: 0; color: var(--red);
}
.lineage li:first-child { border-top: 0; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  text-align: left;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  font-family: inherit;
}
.faq-q .num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-right: 14px; }
.faq-q .toggle { width: 14px; height: 14px; flex-shrink: 0; position: relative; }
.faq-q .toggle::before, .faq-q .toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--red);
  transform: translate(-50%, -50%);
}
.faq-q .toggle::before { width: 14px; height: 1.5px; }
.faq-q .toggle::after { width: 1.5px; height: 14px; transition: transform 200ms; }
.faq-item.open .faq-q .toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease;
}
.faq-a-inner {
  padding-bottom: 22px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
  max-width: 70ch;
}

/* Final CTA */
.final-cta {
  position: relative;
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-deep) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 0;
  overflow: hidden;
  text-align: center;
}
.final-cta h2 { max-width: 22ch; margin: 0 auto 28px; }
.final-cta p { max-width: 60ch; margin: 0 auto 36px; color: var(--text-soft); font-size: 17px; }
.final-cta-line {
  position: absolute; left: 0; right: 0; top: 50%;
  pointer-events: none;
  opacity: 0.6;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--red);
  background: rgba(230,57,70,0.06);
}

/* Cal.com inline embed wrap — Cal.com renders its own card; no extra chrome */
.cal-wrap {
  margin: 48px auto 0;
  max-width: 920px;
  position: relative;
  z-index: 1;
}
.cal-wrap > div { width: 100%; min-height: 640px; }
.cal-wrap iframe {
  width: 100% !important;
  min-height: 640px;
  border: 0 !important;
  display: block;
  background: transparent !important;
}
@media (max-width: 720px) {
  .cal-wrap { margin-top: 32px; }
  .cal-wrap > div, .cal-wrap iframe { min-height: 720px; }
}

/* Footer */
.footer {
  padding: 60px 0 32px;
  background: var(--surface-deep);
  position: relative;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .mark { width: 48px; height: 48px; margin-bottom: 14px; opacity: 0.7; }
.footer-brand p { font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 32ch; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; color: var(--text); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; font-weight: 500; }
.footer-col a { display: block; padding: 5px 0; font-size: 13px; color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.region-badges { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding: 18px 0; border-top: 1px solid var(--border); margin-top: 22px; letter-spacing: 0.06em; }
.region-badges .red { color: var(--red); }
.global-fracture { height: 1px; background: var(--red); width: 100%; box-shadow: 0 0 8px rgba(230,57,70,0.5); }

/* Scoping CTA (replaces Live Scoper) */
.scoping-cta { padding: 80px 0; }
.scoping-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.scoping-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.5;
}
@media (max-width: 980px) { .scoping-card { grid-template-columns: 1fr; } }
.scoping-card-text { padding: 48px 48px 44px; }
@media (max-width: 720px) { .scoping-card-text { padding: 32px 24px 28px; } }
.scoping-card-text p { color: var(--text-soft); font-size: 16px; line-height: 1.6; margin-top: 16px; max-width: 60ch; }
.scoping-points { display: grid; gap: 12px; margin: 32px 0 28px; }
.scoping-points .pt {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-soft); line-height: 1.5;
}
.scoping-points .pt:first-child { border-top: 0; padding-top: 0; }
.scoping-points .pt strong { color: var(--text); font-weight: 500; }
.scoping-points .pt-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--red); letter-spacing: 0.06em;
  padding-top: 2px;
}
.scoping-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.scoping-card-meta {
  padding: 48px 40px;
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-deep) 100%);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
@media (max-width: 980px) { .scoping-card-meta { border-left: 0; border-top: 1px solid var(--border); padding: 28px 24px; } }
.scoping-card-meta .meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  border-top: 1px dashed var(--border);
  font-size: 13px; color: var(--text); font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.scoping-card-meta .meta-row:first-child { border-top: 0; padding-top: 0; }
.scoping-card-meta .meta-row .lbl { color: var(--muted); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ASM section */
.asm-section { background: linear-gradient(180deg, var(--bg) 0%, var(--surface-deep) 50%, var(--bg) 100%); position: relative; }
.asm-section::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}
.asm-stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .asm-stat-row { grid-template-columns: 1fr; } }
.asm-stat {
  padding: 22px 24px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-left: 2px solid var(--red);
}
.asm-stat .num { font-family: var(--font-mono); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.asm-stat .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.asm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  margin-bottom: 40px;
}
@media (max-width: 980px) { .asm-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .asm-grid { grid-template-columns: 1fr; } }
.asm-cell {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease;
  display: flex; flex-direction: column;
  z-index: 1;
}
.asm-cell:hover { transform: translateY(-3px); border-color: var(--border-2); }
.asm-cell:hover .edge { transform: scaleX(1); }
.asm-cell .edge {
  position: absolute; top: 0; right: 0; width: 28%; height: 1px;
  background: var(--red);
  transform-origin: right; transform: scaleX(0);
  transition: transform 280ms ease;
}
.asm-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(230,57,70,0.10);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.asm-cell h4 { font-size: 17px; margin-bottom: 8px; font-weight: 500; line-height: 1.3; }
.asm-cell .desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.asm-cell ul { list-style: none; padding: 0; margin: 0; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.asm-cell ul li { padding: 4px 0; padding-left: 14px; position: relative; line-height: 1.4; }
.asm-cell ul li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 1px; background: var(--red);
}

.asm-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 12px;
}
@media (max-width: 980px) { .asm-tiers { grid-template-columns: 1fr; } }
.asm-tier {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.asm-tier.featured {
  border-color: rgba(230,57,70,0.4);
  background: linear-gradient(180deg, rgba(230,57,70,0.04) 0%, var(--surface-1) 60%);
  box-shadow: 0 0 0 1px rgba(230,57,70,0.18), 0 12px 36px rgba(230,57,70,0.10);
  transform: translateY(-6px);
}
.asm-tier .tier-badge {
  position: absolute; top: -10px; right: 22px;
  background: var(--red); color: #fff;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.asm-tier .tier-name { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.asm-tier .tier-desc { font-size: 13px; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.asm-tier ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.asm-tier ul li { font-size: 13px; color: var(--text-soft); padding: 7px 0 7px 22px; position: relative; line-height: 1.4; border-top: 1px solid var(--border); }
.asm-tier ul li:first-child { border-top: 0; }
.asm-tier ul li::before {
  content: "+"; position: absolute; left: 4px; top: 7px; color: var(--red); font-family: var(--font-mono); font-weight: 600;
}
.asm-tier .btn { justify-content: center; }

/* Modal — redesigned multi-step */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(5,5,8,0.78);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 200ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; transform: none; } }
.modal {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  padding: 32px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(230,57,70,0.1);
  animation: modalIn 240ms cubic-bezier(.2,.9,.2,1.05);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-wide { max-width: 940px; padding: 0; }
.modal h3 { margin-bottom: 6px; }
.modal .close-x {
  position: absolute; top: 18px; right: 18px;
  background: transparent; border: 0; color: var(--muted);
  font-size: 20px; line-height: 1;
  width: 32px; height: 32px; border-radius: 8px;
  transition: background 160ms, color 160ms;
  z-index: 4;
}
.modal .close-x:hover { color: var(--text); background: var(--surface-3); }

.modal-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 540px;
}
@media (max-width: 820px) { .modal-shell { grid-template-columns: 1fr; min-height: 0; } }

.modal-aside {
  padding: 36px 32px;
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-deep) 100%);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: relative;
}
.modal-aside::before {
  content: ""; position: absolute; right: 0; top: 30%; bottom: 30%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--red), transparent);
  opacity: 0.4;
}
@media (max-width: 820px) { .modal-aside { border-right: 0; border-bottom: 1px solid var(--border); padding: 28px; }
  .modal-aside::before { display: none; } }
.aside-mark { margin-bottom: 24px; }
.modal-aside h3 { font-size: 22px; letter-spacing: -0.01em; }
.modal-aside p { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.55; }
.modal-trust {
  list-style: none; padding: 0; margin: 22px 0;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.04em;
}
.modal-trust li { padding: 6px 0; border-top: 1px dashed var(--border); display: flex; align-items: center; gap: 8px; }
.modal-trust li::before { content: "+"; color: var(--red); }
.modal-trust li:first-child { border-top: 0; }

.modal-steps { margin-top: auto; display: grid; gap: 8px; }
.modal-step {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all 180ms ease;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted);
}
.modal-step .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-3); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500;
  flex-shrink: 0;
}
.modal-step.active { border-color: var(--red); color: var(--text); background: rgba(230,57,70,0.06); }
.modal-step.active .dot { background: var(--red); color: #fff; }
.modal-step.done { color: #6FCF97; border-color: var(--border-2); }
.modal-step.done .dot { background: rgba(111,207,151,0.18); color: #6FCF97; }

.modal-body {
  padding: 36px 36px 32px;
  display: flex; flex-direction: column;
  min-width: 0;
}
@media (max-width: 820px) { .modal-body { padding: 24px; } }
.step-pane { flex: 1; }
.step-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.step-pane h4 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.step-help { font-size: 13px; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }

.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 540px) { .opt-grid { grid-template-columns: 1fr; } }
.opt-card {
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  color: var(--text);
  transition: all 160ms ease;
  font-family: inherit;
  cursor: pointer;
}
.opt-card:hover { border-color: var(--border-2); }
.opt-card.on { border-color: var(--red); background: rgba(230,57,70,0.07); box-shadow: 0 0 0 1px rgba(230,57,70,0.3); }
.opt-card .opt-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.opt-card .opt-desc { font-size: 12px; color: var(--muted); line-height: 1.45; }

.fw-block { margin-top: 22px; }
.fw-label {
  font-size: 12px; font-family: var(--font-mono);
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

.modal-body .row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 14px;
}
@media (max-width: 540px) { .modal-body .row { grid-template-columns: 1fr; } }
.modal-body .field { display: grid; gap: 6px; }
.modal-body .field span {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 500;
}
.modal-body input, .modal-body textarea, .modal-body select {
  padding: 11px 13px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms;
}
.modal-body input:focus, .modal-body textarea:focus, .modal-body select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,57,70,0.12); }
.modal-body textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.privacy-note {
  margin-top: 18px;
  padding: 10px 14px;
  font-size: 11px;
  color: var(--muted-2);
  background: var(--surface-2);
  border-left: 2px solid var(--border-2);
  border-radius: 4px;
  line-height: 1.5;
}

.modal-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  gap: 12px;
}
.modal-actions .btn { padding: 11px 20px; }
.modal-actions .btn-primary:disabled {
  background: var(--surface-3); color: var(--muted-2);
  box-shadow: none; cursor: not-allowed;
}

.ok-mark {
  width: 56px; height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(111,207,151,0.16);
  color: #6FCF97;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 500;
  border: 1px solid rgba(111,207,151,0.4);
}
