/* ── Page layout ── */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > main { flex: 1; }

/* ── Header ── */
.audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
}
.audit-header-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.025em;
}
.audit-header-nav {
  font-size: .85rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color .15s;
}
.audit-header-nav:hover { color: #fff; }

/* ── Report wrapper ── */
.audit-shell-wide {
  width: 90%;
  min-width: 40%;
  max-width: 760px;
  margin: 0 auto 3rem;
  padding: 2.5rem 2rem 3rem;
  background: rgba(17, 24, 39, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
}
@media (max-width: 640px) {
  .audit-shell-wide {
    width: calc(100% - 2rem);
    min-width: unset;
    padding: 1.5rem 1.25rem 2rem;
    border-radius: .75rem;
  }
}

/* ── Form hero ── */
.audit-form-hero {
  padding: 1rem 0 2rem;
  border-bottom: 1px solid #1f2937;
  margin-bottom: 2rem;
}
.audit-form-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.audit-form-subtitle {
  color: #b0b8c4;
  font-size: .95rem;
  line-height: 1.7;
  margin-top: .75rem;
  max-width: 560px;
}

/* ── Forms (step 1 + step 2) ── */
.audit-shell { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem; }

.audit-form { display: flex; flex-direction: column; gap: 1.5rem; }

.cf-turnstile {
  margin: -6px -1px 10px;
  clip-path: inset(6px 1px 12px round .5rem);
}
.cf-turnstile *,
.cf-turnstile div,
.cf-turnstile [id] {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.audit-field label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #93c5fd;
  margin-bottom: .5rem;
}
.audit-field input[type=url],
.audit-field input[type=email],
.audit-field textarea {
  width: 100%;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid #1f2937;
  color: #fff;
  padding: .85rem 1rem;
  border-radius: .5rem;
  font-size: 1rem;
  transition: border-color .15s;
}
.audit-field input::placeholder,
.audit-field textarea::placeholder {
  color: #4a5a6e;
}
.audit-field input:focus,
.audit-field textarea:focus {
  outline: none;
  border-color: #2563eb;
}
.audit-field textarea { min-height: 7rem; resize: vertical; margin-bottom: -.5rem; }
.audit-field .hint { color: #4b5563; font-size: .75rem; margin-top: .25rem; }

.audit-checkbox { display: flex; align-items: flex-start; gap: .6rem; }
.audit-checkbox input { margin-top: .25rem; }
.audit-checkbox label { font-size: .85rem; color: #9ca3af; }

/* ── Tool chip selector ── */
.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  padding: .3rem .7rem;
  font-size: .78rem;
  color: #9ca3af;
  background: rgba(17, 24, 39, 0.3);
  border: 1px solid #374151;
  border-radius: 9999px;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.tool-chip:hover {
  border-color: #4b5563;
  color: #d1d5db;
}
.tool-chip-selected {
  background: rgba(37, 99, 235, 0.15);
  border-color: #2563eb;
  color: #93c5fd;
}
.tool-chip-selected:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: #3b82f6;
  color: #bfdbfe;
}

.audit-submit-btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  padding: .85rem 2.5rem;
  border-radius: .5rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background .15s;
  align-self: flex-start;
}
.audit-submit-btn:hover { background: #1d4ed8; }
.audit-submit-btn:disabled { opacity: .5; cursor: not-allowed; }

.audit-form-legal {
  font-size: .8rem;
  color: #6b7280;
}
.audit-form-legal a {
  color: #93c5fd;
  text-decoration: underline;
}

.audit-fieldset-legend {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #93c5fd;
  margin-bottom: .5rem;
}

.audit-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: .5rem;
}

.audit-skip-btn {
  display: inline-block;
  background: transparent;
  color: #9ca3af;
  font-weight: 500;
  padding: .85rem 2rem;
  border-radius: .5rem;
  font-size: 1rem;
  border: 1px solid #1f2937;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.audit-skip-btn:hover { border-color: #374151; color: #e5e7eb; }
.audit-skip-btn:disabled { opacity: .5; cursor: not-allowed; }

.audit-error { color: #fca5a5; font-size: .9rem; min-height: 1.1em; }

.audit-radios, .audit-checks { display: grid; gap: .6rem; margin-top: .5rem; }
@media (min-width: 640px) { .audit-radios { grid-template-columns: repeat(2, 1fr); } }

/* ── Progress theater ── */
.audit-progress {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid #1f2937;
  border-radius: .75rem;
}
.audit-progress .phase {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #4b5563;
  font-size: .95rem;
  transition: color .3s;
}
.audit-progress .phase.active { color: #e5e7eb; font-weight: 500; }
.audit-progress .phase.done { color: #6ee7b7; }
.audit-progress .spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #1f2937;
  border-top-color: #2563eb;
  border-radius: 9999px;
  animation: audit-spin .8s linear infinite;
  flex-shrink: 0;
}
.audit-progress .phase.done .spinner {
  border-color: #065f46;
  border-top-color: #6ee7b7;
  animation: none;
}
@keyframes audit-spin { to { transform: rotate(360deg); } }

/* ── Result hero ── */
.result-hero {
  margin-bottom: 0;
  padding: 1rem 0 2rem;
  border-bottom: 1px solid #1f2937;
}
.result-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 1.5rem;
}
.result-summary {
  color: #b0b8c4;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 640px;
}
.result-total-roi {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #0f1f1a 0%, #0f172a 100%);
  border: 1px solid #0f3d2e;
  border-radius: .75rem;
}
.result-total-label {
  font-size: .8rem;
  color: #6ee7b7;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.result-total-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: #86efac;
  letter-spacing: -.01em;
}

/* ── Opportunity list (single column) ── */
.opp-list-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}
.opp-list { display: flex; flex-direction: column; gap: 1rem; }

.opp-card {
  background: #111827; border: 1px solid #1f2937; border-radius: .75rem;
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem;
}
.opp-card-top { border-color: #0f3d2e; background: linear-gradient(180deg, #101c29 0%, #111827 100%); }

.opp-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.opp-rank-wrap { display: flex; align-items: center; gap: .5rem; }
.opp-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 9999px;
  background: #1f2937; color: #9ca3af; font-weight: 700; font-size: .85rem;
}
.opp-rank-top { background: #065f46; color: #6ee7b7; }
.opp-top-label { font-size: .75rem; font-weight: 600; color: #6ee7b7; text-transform: uppercase; letter-spacing: .05em; }

.opp-confidence {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .5rem;
  border-radius: 9999px;
}
.opp-confidence-high { color: #6ee7b7; background: rgba(6, 95, 70, 0.3); }
.opp-confidence-medium { color: #fbbf24; background: rgba(120, 83, 9, 0.3); }
.opp-confidence-low { color: #f87171; background: rgba(127, 29, 29, 0.3); }

.opp-roi { color: #86efac; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }

.opp-title { font-size: 1.15rem; font-weight: 700; color: #f3f4f6; line-height: 1.3; }
.opp-desc { font-size: .9rem; line-height: 1.65; color: #d1d5db; }
.opp-desc strong { color: #93c5fd; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: .15rem; }
.opp-desc + .opp-desc { padding-top: .5rem; border-top: 1px solid rgba(255,255,255,0.04); }

.opp-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.opp-tag {
  font-size: .7rem; padding: .15rem .6rem; border-radius: 9999px;
  background: #1e293b; color: #94a3b8; font-weight: 500; text-transform: capitalize;
}

.assumptions { font-size: .8rem; color: #6b7280; margin-top: .25rem; }
.assumptions summary { cursor: pointer; }
.assumptions ul { margin-top: .4rem; padding-left: 1.25rem; }
.assumptions li { margin-bottom: .2rem; }

/* ── Primary CTA ── */
.result-cta {
  margin-top: 3rem; padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #1c2738 0%, #151e2d 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: .75rem;
  text-align: center;
  box-shadow: 0 0 50px rgba(37, 99, 235, 0.1);
}
.result-cta-text { font-size: 1.1rem; font-weight: 600; color: #e5e7eb; margin-bottom: 1rem; }
.result-cta-btn {
  display: inline-block; background: #2563eb; color: #fff; font-weight: 600;
  padding: .85rem 2rem; border-radius: .5rem; font-size: 1.05rem;
  text-decoration: none; transition: background .15s;
}
.result-cta-btn:hover { background: #1d4ed8; }

.result-cta-secondary {
  margin-top: 1rem; font-size: .9rem; color: #9ca3af;
}
.result-cta-secondary button,
.result-cta-secondary a {
  background: none; border: none; color: #93c5fd; cursor: pointer;
  font-size: .9rem; text-decoration: underline; padding: 0;
}
.result-cta-sep { margin: 0 .5rem; }

/* ── Methodology (collapsed) ── */
.result-methodology {
  margin-top: 2rem; font-size: .85rem; color: #6b7280;
  border-top: 1px solid #1f2937; padding-top: 1rem;
}
.result-methodology summary { cursor: pointer; font-weight: 600; color: #9ca3af; }
.result-methodology-body { margin-top: .75rem; display: flex; flex-direction: column; gap: .4rem; }
.result-methodology-body a { color: #93c5fd; text-decoration: underline; }
.methodology-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .75rem;
  padding-top: .5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── Step 2 CTA row ── */
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

