:root {
  --stack-bg: #ffffff;
  --stack-panel: #ffffff;
  --stack-panel-raised: #f6f5f2;
  --stack-line: rgba(22, 21, 19, 0.12);
  --stack-line-strong: rgba(22, 21, 19, 0.22);
  --stack-text: #161513;
  --stack-muted: #68635e;
  --stack-orange: #ff6738;
  --stack-orange-soft: rgba(255, 103, 56, 0.09);
  --stack-purple: #9077ff;
}

body.route-software-stack-audit {
  min-width: 320px;
  color: var(--stack-text);
  background: var(--stack-bg);
}

.stack-audit-root {
  position: relative;
  overflow: clip;
  color: var(--stack-text);
  background: var(--stack-bg);
}

.stack-audit-root::before {
  position: absolute;
  z-index: 0;
  top: -280px;
  left: 50%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255, 103, 56, 0.025);
  box-shadow: 0 0 170px 120px rgba(255, 103, 56, 0.018);
  content: "";
  transform: translateX(-50%);
}

.stack-audit-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.stack-audit-hero {
  position: relative;
  z-index: 1;
  padding: 150px 0 112px;
}

.stack-audit-hero::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 106px;
  background: var(--stack-line);
  content: "";
}

.stack-audit-hero-copy {
  max-width: 850px;
  margin-bottom: 48px;
  text-align: center;
}

.stack-audit-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #5f5a55;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stack-audit-eyebrow > span {
  width: 28px;
  height: 2px;
  background: var(--stack-orange);
}

.stack-audit-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(44px, 7.2vw, 82px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.stack-audit-lede {
  max-width: 720px;
  margin: 28px auto 0;
  color: #514c47;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.stack-audit-proof {
  margin: 23px 0 0;
  color: #77716b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-audit-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: start;
  overflow: hidden;
  border: 1px solid var(--stack-line-strong);
  border-radius: 28px;
  background: var(--stack-panel);
  box-shadow: 0 28px 90px rgba(41, 34, 28, 0.11);
}

.stack-audit-form,
.stack-audit-results {
  padding: 38px;
}

.stack-audit-form {
  border-right: 1px solid var(--stack-line);
}

.stack-audit-panel-heading {
  display: grid;
  gap: 7px;
  margin-bottom: 34px;
}

.stack-audit-panel-heading p {
  max-width: 590px;
  margin: 0;
  color: var(--stack-muted);
  line-height: 1.55;
}

.stack-audit-panel-heading .stack-audit-kicker {
  color: var(--stack-text);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.stack-audit-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.stack-audit-fieldset + .stack-audit-fieldset {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--stack-line);
}

.stack-audit-fieldset legend {
  width: 100%;
  margin-bottom: 17px;
  color: #312e2a;
  font-size: 14px;
  font-weight: 700;
}

.stack-audit-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.stack-audit-capability {
  position: relative;
  cursor: pointer;
}

.stack-audit-capability input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.stack-audit-capability-ui {
  display: grid;
  min-height: 68px;
  grid-template-columns: 49px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 9px;
  border: 1px solid var(--stack-line);
  border-radius: 15px;
  color: #403c37;
  background: #fbfaf8;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.stack-audit-capability:hover .stack-audit-capability-ui {
  border-color: rgba(22, 21, 19, 0.28);
  color: var(--stack-text);
  transform: translateY(-1px);
}

.stack-audit-capability input:focus-visible + .stack-audit-capability-ui {
  outline: 3px solid rgba(255, 103, 56, 0.35);
  outline-offset: 2px;
}

.stack-audit-capability input:checked + .stack-audit-capability-ui {
  border-color: rgba(255, 103, 56, 0.62);
  color: var(--stack-text);
  background: var(--stack-orange-soft);
}

.stack-audit-capability-badge {
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border: 1px solid var(--stack-line);
  border-radius: 12px;
  color: #655f59;
  background: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.stack-audit-capability input:checked + .stack-audit-capability-ui .stack-audit-capability-badge {
  color: var(--stack-orange);
  border-color: rgba(255, 103, 56, 0.35);
}

.stack-audit-capability-name {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}

.stack-audit-check {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid var(--stack-line-strong);
  border-radius: 7px;
  color: transparent;
  font-size: 12px;
}

.stack-audit-capability input:checked + .stack-audit-capability-ui .stack-audit-check {
  color: #161513;
  border-color: var(--stack-orange);
  background: var(--stack-orange);
}

.stack-audit-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 14px;
}

.stack-audit-input {
  display: grid;
  gap: 8px;
  color: #38342f;
  font-size: 13px;
  font-weight: 700;
}

.stack-audit-input small {
  min-height: 32px;
  color: #746e68;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.stack-audit-input-wrap {
  display: flex;
  height: 50px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--stack-line);
  border-radius: 12px;
  color: #746e68;
  background: #ffffff;
}

.stack-audit-input-wrap:focus-within {
  border-color: var(--stack-orange);
  box-shadow: 0 0 0 3px rgba(255, 103, 56, 0.12);
}

.stack-audit-input input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--stack-text);
  background: transparent;
  font: inherit;
  font-size: 17px;
}

.stack-audit-input input::placeholder {
  color: #a29c95;
}

.stack-audit-currency {
  grid-column: 1 / -1;
  max-width: 180px;
}

.stack-audit-currency select {
  height: 48px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--stack-line);
  border-radius: 12px;
  color: var(--stack-text);
  background: #ffffff;
  font: inherit;
}

.stack-audit-error {
  margin: 20px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 103, 56, 0.45);
  border-radius: 11px;
  color: #9b3416;
  background: rgba(255, 103, 56, 0.09);
  font-size: 13px;
}

.stack-audit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.stack-audit-button {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.stack-audit-button:hover {
  transform: translateY(-1px);
}

.stack-audit-button:focus-visible,
.stack-audit-text-button:focus-visible {
  outline: 3px solid rgba(255, 103, 56, 0.35);
  outline-offset: 2px;
}

.stack-audit-button-primary {
  color: #ffffff;
  background: var(--stack-orange);
  box-shadow: 0 12px 32px rgba(255, 103, 56, 0.18);
}

.stack-audit-button-primary:hover {
  background: #ff7a50;
}

.stack-audit-button-ghost {
  color: #4f4a45;
  border-color: var(--stack-line);
  background: transparent;
}

.stack-audit-button-ghost:hover {
  border-color: var(--stack-line-strong);
  color: var(--stack-text);
}

.stack-audit-privacy {
  margin: 14px 0 0;
  color: #746e68;
  font-size: 11px;
  line-height: 1.5;
}

.stack-audit-results {
  position: sticky;
  top: 30px;
  min-height: 720px;
  background: var(--stack-panel-raised);
}

.stack-audit-results .stack-audit-eyebrow {
  justify-content: flex-start;
  margin-bottom: 27px;
}

.stack-audit-results h2 {
  max-width: 380px;
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.stack-audit-result-intro {
  max-width: 390px;
  margin: 18px 0 0;
  color: var(--stack-muted);
  font-size: 16px;
  line-height: 1.55;
}

.stack-audit-empty-visual {
  position: relative;
  height: 250px;
  margin-top: 54px;
}

.stack-audit-empty-visual span {
  position: absolute;
  left: calc(50% - 42px);
  width: 84px;
  height: 84px;
  border: 1px solid var(--stack-line-strong);
  border-radius: 19px;
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(41, 34, 28, 0.1);
}

.stack-audit-empty-visual span:nth-child(1) { top: 0; transform: translateX(-94px) rotate(-8deg); }
.stack-audit-empty-visual span:nth-child(2) { top: 20px; transform: translateX(94px) rotate(8deg); }
.stack-audit-empty-visual span:nth-child(3) { top: 116px; border-color: rgba(255,103,56,.45); }
.stack-audit-empty-visual i {
  position: absolute;
  top: 57px;
  left: 50%;
  width: 1px;
  height: 79px;
  background: rgba(255,103,56,.55);
  box-shadow: -93px 0 0 rgba(22, 21, 19, 0.12), 93px 0 0 rgba(22, 21, 19, 0.12);
}

.stack-audit-total {
  padding: 22px 23px;
  border: 1px solid rgba(255, 103, 56, 0.32);
  border-radius: 17px;
  background: rgba(255, 103, 56, 0.08);
}

.stack-audit-total span,
.stack-audit-metrics span {
  display: block;
  color: #6f6963;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stack-audit-total strong {
  display: block;
  margin-top: 8px;
  color: var(--stack-text);
  font-size: clamp(38px, 5vw, 54px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.stack-audit-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 13px;
  border: 1px solid var(--stack-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.7);
}

.stack-audit-metrics > div {
  min-height: 78px;
  padding: 14px;
}

.stack-audit-metrics > div:nth-child(odd) { border-right: 1px solid var(--stack-line); }
.stack-audit-metrics > div:nth-child(-n + 2) { border-bottom: 1px solid var(--stack-line); }

.stack-audit-metrics strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

.stack-audit-output-section {
  margin-top: 26px;
}

.stack-audit-output-section > h3,
.stack-audit-workflow > p {
  margin: 0 0 12px;
  color: #6f6963;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-audit-module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stack-audit-module-list a {
  padding: 7px 9px;
  border: 1px solid var(--stack-line);
  border-radius: 8px;
  color: #403c37;
  background: #ffffff;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.stack-audit-module-list a:hover {
  border-color: var(--stack-orange);
  color: var(--stack-text);
}

.stack-audit-workflow {
  padding: 18px;
  border-left: 2px solid var(--stack-purple);
  background: rgba(144, 119, 255, 0.07);
}

.stack-audit-workflow h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.stack-audit-workflow > span {
  display: block;
  margin-top: 8px;
  color: #68635e;
  font-size: 13px;
  line-height: 1.5;
}

.stack-audit-result-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.stack-audit-text-button {
  padding: 0;
  border: 0;
  cursor: pointer;
  color: #68635e;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stack-audit-result-cta {
  width: 100%;
  margin-top: 22px;
}

.stack-audit-disclaimer {
  margin: 16px 0 0;
  color: #77716b;
  font-size: 10px;
  line-height: 1.5;
}

.stack-audit-system,
.stack-audit-faq {
  border-top: 1px solid var(--stack-line);
}

.stack-audit-system {
  padding: 112px 0;
  background: #f7f6f3;
}

.stack-audit-system .stack-audit-eyebrow {
  justify-content: flex-start;
}

.stack-audit-system-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 70px;
}

.stack-audit-system-heading h2,
.stack-audit-faq h2 {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 68px);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.stack-audit-system-heading p {
  margin: 0 0 4px;
  color: var(--stack-muted);
  font-size: 17px;
  line-height: 1.6;
}

.stack-audit-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 70px;
  border-top: 1px solid var(--stack-line-strong);
}

.stack-audit-steps article {
  min-height: 250px;
  padding: 27px 28px 30px 0;
  border-right: 1px solid var(--stack-line);
}

.stack-audit-steps article + article { padding-left: 28px; }
.stack-audit-steps article:last-child { border-right: 0; }

.stack-audit-steps article > span {
  color: var(--stack-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.stack-audit-steps h3 {
  margin: 70px 0 12px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.stack-audit-steps p {
  margin: 0;
  color: var(--stack-muted);
  font-size: 14px;
  line-height: 1.6;
}

.stack-audit-faq {
  padding: 105px 0 120px;
}

.stack-audit-faq-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 90px;
}

.stack-audit-faq details {
  border-bottom: 1px solid var(--stack-line);
}

.stack-audit-faq summary {
  display: grid;
  min-height: 76px;
  grid-template-columns: 1fr 30px;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  color: #2c2925;
  font-size: 18px;
  font-weight: 650;
  list-style: none;
}

.stack-audit-faq summary::-webkit-details-marker { display: none; }
.stack-audit-faq summary span { color: var(--stack-orange); font-size: 24px; font-weight: 400; }
.stack-audit-faq details[open] summary span { transform: rotate(45deg); }

.stack-audit-faq details p {
  max-width: 650px;
  margin: -4px 42px 26px 0;
  color: var(--stack-muted);
  line-height: 1.65;
}

@media (max-width: 920px) {
  .stack-audit-workspace { grid-template-columns: 1fr; }
  .stack-audit-form { border-right: 0; border-bottom: 1px solid var(--stack-line); }
  .stack-audit-results { position: static; min-height: 560px; }
  .stack-audit-system-heading { grid-template-columns: 1fr; gap: 25px; }
  .stack-audit-faq-shell { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 680px) {
  .stack-audit-shell { width: min(100% - 24px, 1120px); }
  .stack-audit-hero { padding: 132px 0 76px; }
  .stack-audit-hero-copy { margin-bottom: 34px; }
  .stack-audit-hero h1 { font-size: clamp(42px, 13vw, 62px); }
  .stack-audit-lede { font-size: 17px; }
  .stack-audit-proof { max-width: 310px; margin-right: auto; margin-left: auto; line-height: 1.7; }
  .stack-audit-workspace { border-radius: 20px; }
  .stack-audit-form, .stack-audit-results { padding: 26px 20px; }
  .stack-audit-capabilities { grid-template-columns: 1fr; }
  .stack-audit-input-grid { grid-template-columns: 1fr; }
  .stack-audit-currency { grid-column: auto; }
  .stack-audit-input small { min-height: auto; }
  .stack-audit-actions { align-items: stretch; flex-direction: column; }
  .stack-audit-system { padding: 78px 0; }
  .stack-audit-steps { grid-template-columns: 1fr; margin-top: 42px; }
  .stack-audit-steps article, .stack-audit-steps article + article { min-height: 0; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--stack-line); }
  .stack-audit-steps article:last-child { border-bottom: 0; }
  .stack-audit-steps h3 { margin-top: 35px; }
  .stack-audit-faq { padding: 76px 0 90px; }
  .stack-audit-faq h2 { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@media print {
  .preview-header,
  .preview-footer,
  .sb-site-header,
  .sb-footer-section,
  .stack-audit-hero-copy,
  .stack-audit-form,
  .stack-audit-system,
  .stack-audit-faq,
  .stack-audit-result-actions,
  .stack-audit-result-cta { display: none !important; }
  body.route-software-stack-audit,
  .stack-audit-root,
  .stack-audit-hero { color: #111; background: white; }
  .stack-audit-hero { padding: 0; }
  .stack-audit-workspace { display: block; width: 100%; border: 0; box-shadow: none; }
  .stack-audit-results { color: #111; background: white; }
  .stack-audit-results * { color: #111 !important; }
}
