/* ============================================================
   ¿Está hecho con IA? — dark slate theme, single accent color.
   Zero dependencies: system font stack, no external assets.
   3-step wizard: Elegir → Subir → Resultado.
   ============================================================ */

:root {
 --bg: #0b1120;
 --bg-soft: #0f172a;
 --card: #111a2e;
 --card-deep: #0d1526;
 --border: #1e2a41;
 --border-soft: #182338;
 --text: #e6edf7;
 --muted: #8fa3bf;
 --muted-2: #64748b;
 --accent: #7c9dff;
 --accent-strong: #9db8ff;
 --accent-dim: rgba(124, 157, 255, 0.14);
 --ok: #34d399;
 --warn: #fbbf24;
 --bad: #f87171;
 --radius: 16px;
 --radius-sm: 10px;
 --shadow: 0 18px 50px rgba(2, 6, 18, 0.55);
}

* {
 box-sizing: border-box;
}

html {
 scroll-behavior: smooth;
}

/* `hidden` always wins, even over display:flex/grid rules below. */
[hidden] {
 display: none !important;
}

body {
 margin: 0;
 min-height: 100dvh;
 display: flex;
 flex-direction: column;
 background:
  radial-gradient(
   1100px 500px at 85% -10%,
   rgba(124, 157, 255, 0.09),
   transparent 60%
  ),
  radial-gradient(
   900px 420px at -10% 0%,
   rgba(124, 157, 255, 0.06),
   transparent 55%
  ),
  var(--bg);
 color: var(--text);
 font-family:
  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
  sans-serif;
 line-height: 1.55;
 -webkit-font-smoothing: antialiased;
}

.container {
 width: 100%;
 max-width: 980px;
 margin: 0 auto;
 padding: 0 20px;
}

.sr-only {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 margin: -1px;
 overflow: hidden;
 clip: rect(0 0 0 0);
 white-space: nowrap;
 border: 0;
}

/* ---------------- header ---------------- */

.site-header {
 border-bottom: 1px solid var(--border-soft);
 background: rgba(11, 17, 32, 0.75);
 backdrop-filter: blur(10px);
 position: sticky;
 top: 0;
 z-index: 10;
}

.header-inner {
 padding-top: 16px;
 padding-bottom: 16px;
}

.brand {
 display: flex;
 align-items: center;
 gap: 14px;
}

.brand-icon {
 display: grid;
 place-items: center;
 width: 52px;
 height: 52px;
 border-radius: 14px;
 color: var(--accent);
 background: var(--accent-dim);
 border: 1px solid rgba(124, 157, 255, 0.25);
}

.brand h1 {
 margin: 0;
 font-size: 1.35rem;
 letter-spacing: 0.2px;
}

.tagline {
 margin: 2px 0 0;
 color: var(--muted);
 font-size: 0.86rem;
}

.tagline svg {
 color: var(--ok);
 margin-right: 2px;
}

/* ---------------- stepper ---------------- */

.stepper {
 margin: 26px 0 22px;
 scroll-margin-top: 104px;
}

.stepper-list {
 display: flex;
 align-items: center;
 gap: 10px;
 margin: 0;
 padding: 0;
 list-style: none;
}

.stepper-sep {
 flex: 1;
 height: 2px;
 border-radius: 2px;
 background: var(--border);
 transition: background 0.25s ease;
}

.stepper-sep.is-done {
 background: rgba(124, 157, 255, 0.55);
}

.step-btn {
 display: inline-flex;
 align-items: center;
 gap: 9px;
 padding: 0;
 border: 0;
 border-radius: 999px;
 background: transparent;
 color: var(--muted-2);
 font: inherit;
 font-size: 0.9rem;
 font-weight: 600;
 cursor: default;
 transition: color 0.18s ease;
}

.step-btn:not(:disabled) {
 cursor: pointer;
}

.step-btn:not(:disabled):hover {
 color: var(--text);
}

.step-btn:focus-visible {
 outline: 2px solid var(--accent);
 outline-offset: 3px;
 border-radius: 8px;
}

.step-dot {
 display: grid;
 place-items: center;
 width: 34px;
 height: 34px;
 border-radius: 50%;
 border: 2px solid var(--border);
 background: var(--card-deep);
 color: var(--muted-2);
 font-variant-numeric: tabular-nums;
 transition:
  border-color 0.2s ease,
  background 0.2s ease,
  color 0.2s ease;
}

.step-num {
 font-size: 0.86rem;
 font-weight: 700;
 line-height: 1;
}

.step-check {
 display: none;
}

.step-btn.is-done {
 color: var(--muted);
}

.step-btn.is-done .step-dot {
 border-color: rgba(124, 157, 255, 0.55);
 background: var(--accent-dim);
 color: var(--accent-strong);
}

.step-btn.is-done .step-num {
 display: none;
}

.step-btn.is-done .step-check {
 display: block;
}

.step-btn.is-current {
 color: var(--accent-strong);
}

.step-btn.is-current .step-dot {
 border-color: var(--accent);
 background: var(--accent-dim);
 color: var(--accent-strong);
 box-shadow: 0 0 0 4px rgba(124, 157, 255, 0.12);
}

/* ---------------- wizard steps ---------------- */

.wizard-step {
 margin-bottom: 26px;
}

/* Slide + fade transition between steps (~200ms). */
.wizard-step.anim-fwd {
 animation: step-in-fwd 0.2s ease both;
}

.wizard-step.anim-back {
 animation: step-in-back 0.2s ease both;
}

@keyframes step-in-fwd {
 from {
  opacity: 0;
  transform: translateX(18px);
 }
 to {
  opacity: 1;
  transform: translateX(0);
 }
}

@keyframes step-in-back {
 from {
  opacity: 0;
  transform: translateX(-18px);
 }
 to {
  opacity: 1;
  transform: translateX(0);
 }
}

.step-title {
 margin: 0 0 16px;
 font-size: 1.2rem;
 letter-spacing: 0.2px;
}

.step-title:focus {
 outline: none;
}

.step-title--card {
 margin: 4px 0 18px;
}

.step-head {
 display: flex;
 align-items: center;
 gap: 14px;
 flex-wrap: wrap;
}

.link-back {
 display: inline-flex;
 align-items: center;
 gap: 5px;
 padding: 6px 12px 6px 8px;
 border: 0;
 border-radius: 999px;
 background: transparent;
 color: var(--muted);
 font: inherit;
 font-size: 0.88rem;
 font-weight: 600;
 cursor: pointer;
 transition:
  color 0.18s ease,
  background 0.18s ease;
}

.link-back:hover:not(:disabled) {
 color: var(--accent-strong);
 background: var(--accent-dim);
}

.link-back:disabled {
 opacity: 0.55;
 cursor: not-allowed;
}

.link-back:focus-visible {
 outline: 2px solid var(--accent);
 outline-offset: 2px;
}

/* ---------------- step 1: choice cards ---------------- */

.choice-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 16px;
}

.choice-card {
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 gap: 10px;
 padding: 26px 24px;
 border: 1px solid var(--border);
 border-radius: var(--radius);
 background: linear-gradient(180deg, var(--card), var(--card-deep));
 box-shadow: var(--shadow);
 color: var(--text);
 font: inherit;
 text-align: left;
 cursor: pointer;
 transition:
  border-color 0.18s ease,
  transform 0.18s ease,
  box-shadow 0.18s ease;
}

.choice-card:hover {
 border-color: rgba(124, 157, 255, 0.6);
 transform: translateY(-2px);
}

.choice-card:focus-visible {
 outline: 2px solid var(--accent);
 outline-offset: 3px;
}

.choice-icon {
 display: grid;
 place-items: center;
 width: 58px;
 height: 58px;
 border-radius: 14px;
 color: var(--accent);
 background: var(--accent-dim);
 border: 1px solid rgba(124, 157, 255, 0.25);
 margin-bottom: 4px;
}

.choice-title {
 font-size: 1.15rem;
 font-weight: 700;
}

.choice-sub {
 color: var(--muted);
 font-size: 0.88rem;
}

/* ---------------- cards ---------------- */

.card {
 background: linear-gradient(180deg, var(--card), var(--card-deep));
 border: 1px solid var(--border);
 border-radius: var(--radius);
 padding: 22px;
 box-shadow: var(--shadow);
}

/* ---------------- segmented control ---------------- */

.segmented {
 display: flex;
 gap: 6px;
 margin-bottom: 16px;
 padding: 4px;
 background: var(--card-deep);
 border: 1px solid var(--border-soft);
 border-radius: 12px;
 width: fit-content;
 max-width: 100%;
}

.seg-btn {
 padding: 7px 16px;
 border: 0;
 border-radius: 9px;
 background: transparent;
 color: var(--muted);
 font: inherit;
 font-size: 0.88rem;
 font-weight: 600;
 cursor: pointer;
 transition:
  color 0.18s ease,
  background 0.18s ease;
}

.seg-btn:hover:not(:disabled) {
 color: var(--text);
}

.seg-btn.is-active {
 color: var(--accent-strong);
 background: var(--accent-dim);
}

.seg-btn:disabled {
 opacity: 0.55;
 cursor: not-allowed;
}

.seg-btn:focus-visible {
 outline: 2px solid var(--accent);
 outline-offset: 2px;
}

/* ---------------- drop zones ---------------- */

.drop-zone {
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
 gap: 4px;
 padding: 34px 22px 30px;
 border: 2px dashed var(--border);
 border-radius: var(--radius-sm);
 background: rgba(13, 21, 38, 0.55);
 cursor: pointer;
 transition:
  border-color 0.18s ease,
  background 0.18s ease,
  transform 0.18s ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-dragover {
 border-color: var(--accent);
 background: rgba(124, 157, 255, 0.07);
}

.drop-zone.is-dragover {
 transform: scale(1.008);
}

.drop-zone:focus-visible {
 outline: 2px solid var(--accent);
 outline-offset: 3px;
}

.drop-zone.is-locked {
 pointer-events: none;
 opacity: 0.6;
}

.dz-icon {
 color: var(--accent);
 opacity: 0.9;
 margin-bottom: 8px;
}

.dz-title {
 margin: 0;
 font-weight: 650;
 font-size: 1.02rem;
}

.dz-hint {
 margin: 0;
 color: var(--muted);
 font-size: 0.84rem;
}

/* ---------------- selected file card ---------------- */

.file-card {
 display: flex;
 align-items: center;
 gap: 14px;
 padding: 14px 16px;
 border: 1px solid var(--border);
 border-radius: var(--radius-sm);
 background: rgba(9, 14, 26, 0.6);
}

.file-card .btn-ghost {
 margin-top: 0;
 flex: none;
}

.file-icon {
 display: grid;
 place-items: center;
 width: 46px;
 height: 46px;
 border-radius: 10px;
 color: var(--accent);
 background: var(--accent-dim);
 border: 1px solid rgba(124, 157, 255, 0.25);
 flex: none;
}

.dz-file {
 margin: 0;
 color: var(--text);
 font-size: 0.9rem;
 font-weight: 600;
 min-width: 0;
 flex: 1;
 overflow-wrap: anywhere;
}

.dz-file.is-image {
 display: flex;
 align-items: center;
 gap: 10px;
}

.dz-file img {
 width: 44px;
 height: 44px;
 object-fit: cover;
 border-radius: 8px;
 border: 1px solid var(--border);
 flex: none;
}

/* Format badge appended next to the selected file name ("PDF · mejor esfuerzo"). */
.dz-format-badge {
 display: inline-block;
 margin-left: 9px;
 padding: 2px 9px;
 border-radius: 999px;
 background: rgba(124, 157, 255, 0.18);
 border: 1px solid rgba(124, 157, 255, 0.45);
 color: var(--accent-strong);
 font-size: 0.72rem;
 font-weight: 700;
 letter-spacing: 0.4px;
 text-transform: uppercase;
 vertical-align: 1px;
 white-space: nowrap;
}

/* ---------------- textarea / word counter ---------------- */

textarea {
 width: 100%;
 resize: vertical;
 min-height: 150px;
 padding: 14px 16px;
 border-radius: var(--radius-sm);
 border: 1px solid var(--border);
 background: rgba(9, 14, 26, 0.7);
 color: var(--text);
 font: inherit;
 font-size: 0.95rem;
 transition:
  border-color 0.18s ease,
  box-shadow 0.18s ease;
}

textarea::placeholder {
 color: var(--muted-2);
}

textarea:focus-visible {
 outline: none;
 border-color: var(--accent);
 box-shadow: 0 0 0 3px rgba(124, 157, 255, 0.22);
}

textarea:disabled {
 opacity: 0.6;
}

.word-count {
 margin: 8px 0 0;
 color: var(--muted-2);
 font-size: 0.8rem;
 font-variant-numeric: tabular-nums;
}

/* ---------------- buttons ---------------- */

.actions {
 display: flex;
 gap: 12px;
 margin-top: 18px;
 flex-wrap: wrap;
 align-items: center;
}

.actions--results {
 margin-top: 22px;
}

.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 padding: 11px 22px;
 border-radius: 12px;
 border: 1px solid transparent;
 font: inherit;
 font-weight: 650;
 font-size: 0.95rem;
 cursor: pointer;
 transition:
  transform 0.15s ease,
  background 0.18s ease,
  border-color 0.18s ease,
  opacity 0.18s ease;
}

.btn:active {
 transform: translateY(1px);
}

.btn:focus-visible {
 outline: 2px solid var(--accent);
 outline-offset: 2px;
}

.btn:disabled {
 opacity: 0.55;
 cursor: not-allowed;
 transform: none;
}

.btn-primary {
 color: #0b1120;
 background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

.btn-primary:hover:not(:disabled) {
 background: var(--accent-strong);
}

.btn-ghost {
 padding: 10px 18px;
 color: var(--muted);
 background: transparent;
 border-color: var(--border);
 font-size: 0.9rem;
 font-weight: 550;
}

.btn-ghost:hover:not(:disabled) {
 color: var(--text);
 border-color: var(--accent);
}

/* Small inline spinner shown inside the Analizar button while busy. */
.btn-spinner {
 width: 16px;
 height: 16px;
 border-radius: 50%;
 border: 2px solid rgba(11, 17, 32, 0.35);
 border-top-color: #0b1120;
 animation: spin 0.8s linear infinite;
}

/* ---------------- inline alert (step 2) ---------------- */

.alert {
 margin: 16px 0 0;
 padding: 12px 15px;
 border-radius: var(--radius-sm);
 border: 1px solid;
 font-size: 0.88rem;
 overflow-wrap: anywhere;
}

.alert--error {
 border-color: rgba(248, 113, 113, 0.45);
 background: rgba(248, 113, 113, 0.1);
 color: #fecaca;
}

.alert--warn {
 border-color: rgba(251, 191, 36, 0.45);
 background: rgba(251, 191, 36, 0.1);
 color: #fde68a;
}

/* ---------------- gauge / verdict ---------------- */

.results-card {
 position: relative;
 overflow: hidden;
}

.verdict-grid {
 display: grid;
 grid-template-columns: 240px 1fr;
 gap: 26px;
 align-items: center;
}

.gauge-wrap {
 position: relative;
 width: 100%;
 max-width: 260px;
 margin: 0 auto;
}

.gauge-wrap svg {
 width: 100%;
 height: auto;
 display: block;
}

.gauge-track {
 stroke: var(--border);
}

.gauge-progress {
 stroke-linecap: round;
 transition:
  stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1),
  stroke 0.4s ease;
}

.gauge-value {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 4px;
 text-align: center;
 font-size: 2rem;
 font-weight: 750;
 letter-spacing: -0.5px;
 font-variant-numeric: tabular-nums;
}

.gauge-value small {
 display: block;
 font-size: 0.68rem;
 font-weight: 550;
 color: var(--muted);
 letter-spacing: 0.4px;
}

.verdict-main h3 {
 margin: 0 0 8px;
 font-size: 1.25rem;
 line-height: 1.35;
}

.verdict-main h3.band-human {
 color: var(--ok);
}
.verdict-main h3.band-inconclusive {
 color: var(--warn);
}
.verdict-main h3.band-aiLikely {
 color: #fb923c;
}
.verdict-main h3.band-aiVeryLikely {
 color: var(--bad);
}

/* One short plain-language line under the verdict. */
.summary-line {
 margin: 0 0 14px;
 color: var(--muted);
 font-size: 0.94rem;
}

.badge-row {
 display: flex;
 gap: 8px;
 flex-wrap: wrap;
 margin-bottom: 14px;
}

.badge {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 4px 12px;
 border-radius: 999px;
 font-size: 0.78rem;
 font-weight: 650;
 border: 1px solid;
}

.badge--insufficient {
 color: var(--bad);
 border-color: rgba(248, 113, 113, 0.4);
 background: rgba(248, 113, 113, 0.1);
}
.badge--low {
 color: var(--warn);
 border-color: rgba(251, 191, 36, 0.4);
 background: rgba(251, 191, 36, 0.09);
}
.badge--medium {
 color: #a3e635;
 border-color: rgba(163, 230, 53, 0.35);
 background: rgba(163, 230, 53, 0.08);
}
.badge--high {
 color: var(--ok);
 border-color: rgba(52, 211, 153, 0.4);
 background: rgba(52, 211, 153, 0.09);
}

.badge--reason {
 color: var(--muted);
 border-color: var(--border);
 background: transparent;
 font-weight: 500;
}

.stats-row {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 10px;
 margin-top: 4px;
}

.stat {
 background: rgba(9, 14, 26, 0.6);
 border: 1px solid var(--border-soft);
 border-radius: var(--radius-sm);
 padding: 10px 12px;
 text-align: center;
}

.stat b {
 display: block;
 font-size: 1.15rem;
 font-variant-numeric: tabular-nums;
}

.stat span {
 color: var(--muted);
 font-size: 0.76rem;
}

/* ---------------- warning banners (step 3) ---------------- */

.banner-stack {
 display: grid;
 gap: 10px;
 margin: 18px 0 0;
}

.warning-banner {
 display: flex;
 gap: 12px;
 align-items: flex-start;
 margin: 0;
 padding: 14px 16px;
 border-radius: var(--radius-sm);
 border: 1px solid rgba(248, 113, 113, 0.45);
 background: rgba(248, 113, 113, 0.1);
 color: #fecaca;
 font-size: 0.9rem;
}

.warning-banner svg {
 flex: none;
 margin-top: 2px;
 color: var(--bad);
}

/* Amber variant for lossy-extraction notices (PDF / legacy formats). */
.warning-banner--warn {
 border-color: rgba(251, 191, 36, 0.45);
 background: rgba(251, 191, 36, 0.1);
 color: #fde68a;
}

.warning-banner--warn svg {
 color: var(--warn);
}

/* ---------------- accordions (step 3) ---------------- */

.accordion {
 margin-top: 14px;
 border: 1px solid var(--border-soft);
 border-radius: var(--radius-sm);
 background: rgba(9, 14, 26, 0.4);
}

.accordion-summary {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 10px;
 padding: 13px 16px;
 border-radius: var(--radius-sm);
 font-size: 0.82rem;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 1.1px;
 color: var(--muted);
 cursor: pointer;
 list-style: none;
 user-select: none;
}

.accordion-summary::-webkit-details-marker {
 display: none;
}

.accordion-summary:hover {
 color: var(--text);
}

.accordion-summary:focus-visible {
 outline: 2px solid var(--accent);
 outline-offset: -2px;
}

.accordion-summary .chev {
 flex: none;
 color: var(--muted-2);
 transition: transform 0.18s ease;
}

.accordion[open] > .accordion-summary .chev {
 transform: rotate(180deg);
}

.accordion-body {
 padding: 2px 16px 16px;
}

/* ---------------- signals ---------------- */

.signal-list {
 display: grid;
 gap: 10px;
}

.signal {
 background: rgba(9, 14, 26, 0.55);
 border: 1px solid var(--border-soft);
 border-radius: var(--radius-sm);
 padding: 14px 16px;
}

.signal.is-na {
 opacity: 0.55;
}

.signal-head {
 display: flex;
 align-items: baseline;
 justify-content: space-between;
 gap: 12px;
 flex-wrap: wrap;
}

.signal-label {
 font-weight: 650;
 font-size: 0.93rem;
}

.signal-score {
 font-size: 0.8rem;
 color: var(--muted);
 font-variant-numeric: tabular-nums;
 white-space: nowrap;
}

.signal-score b {
 font-size: 0.95rem;
}

.bar {
 position: relative;
 height: 8px;
 margin: 10px 0 4px;
 border-radius: 999px;
 background: linear-gradient(
  90deg,
  rgba(52, 211, 153, 0.28),
  rgba(251, 191, 36, 0.3),
  rgba(248, 113, 113, 0.32)
 );
 overflow: visible;
}

.bar-fill {
 position: absolute;
 inset: 0 auto 0 0;
 width: 0%;
 border-radius: 999px;
 transition:
  width 0.9s cubic-bezier(0.22, 1, 0.36, 1),
  background 0.3s ease;
}

.bar-mid {
 position: absolute;
 left: 50%;
 top: -3px;
 bottom: -3px;
 width: 2px;
 background: var(--text);
 opacity: 0.55;
 border-radius: 2px;
}

.bar-legend {
 display: flex;
 justify-content: space-between;
 color: var(--muted-2);
 font-size: 0.72rem;
 margin-bottom: 8px;
}

.signal-expl {
 margin: 6px 0 0;
 color: var(--muted);
 font-size: 0.84rem;
}

.signal-evidence {
 margin: 8px 0 0;
 padding-left: 18px;
 color: var(--muted);
 font-size: 0.8rem;
 display: grid;
 gap: 3px;
 overflow-wrap: anywhere;
}

/* ---------------- chips ---------------- */

.chips {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
}

.chip {
 padding: 5px 12px;
 border-radius: 999px;
 background: var(--accent-dim);
 border: 1px solid rgba(124, 157, 255, 0.28);
 color: var(--accent-strong);
 font-size: 0.79rem;
 overflow-wrap: anywhere;
}

.chips-empty {
 color: var(--muted-2);
 font-size: 0.85rem;
 margin: 0;
}

/* ---------------- image results ---------------- */

.image-top {
 display: grid;
 grid-template-columns: 190px 1fr;
 gap: 22px;
 align-items: start;
}

.image-thumb {
 width: 100%;
 border-radius: var(--radius-sm);
 border: 1px solid var(--border);
 background:
  repeating-conic-gradient(var(--card-deep) 0% 25%, var(--card) 0% 50%) 0 0 /
  22px 22px;
 object-fit: contain;
 max-height: 220px;
}

.findings {
 display: grid;
 gap: 10px;
}

.finding {
 display: grid;
 grid-template-columns: auto 1fr;
 gap: 12px;
 align-items: start;
 background: rgba(9, 14, 26, 0.55);
 border: 1px solid var(--border-soft);
 border-radius: var(--radius-sm);
 padding: 13px 15px;
}

.finding-impact {
 justify-self: start;
 padding: 3px 10px;
 border-radius: 999px;
 font-size: 0.72rem;
 font-weight: 700;
 letter-spacing: 0.4px;
 border: 1px solid;
}

.finding-impact--ai {
 color: var(--bad);
 border-color: rgba(248, 113, 113, 0.45);
 background: rgba(248, 113, 113, 0.1);
}
.finding-impact--human {
 color: var(--ok);
 border-color: rgba(52, 211, 153, 0.45);
 background: rgba(52, 211, 153, 0.09);
}
.finding-impact--neutral {
 color: var(--muted);
 border-color: var(--border);
 background: transparent;
}

.finding b {
 display: block;
 font-size: 0.92rem;
 margin-bottom: 2px;
}

.finding p {
 margin: 0;
 color: var(--muted);
 font-size: 0.84rem;
 overflow-wrap: anywhere;
}

/* ---------------- how-to-read body ---------------- */

.howto p {
 margin: 0 0 10px;
 color: var(--muted);
 font-size: 0.87rem;
}

.howto p:last-child {
 margin-bottom: 0;
}

.howto strong {
 color: var(--text);
}

/* ---------------- FAQ (SEO / GEO) ---------------- */

.faq {
 margin: 10px 0 30px;
}

.faq-list {
 display: grid;
 gap: 10px;
}

/* FAQ items reuse the step-3 accordion, but questions read as normal-case
   sentences instead of the uppercase section labels of the results card. */
.faq-item .accordion-summary {
 text-transform: none;
 letter-spacing: 0.2px;
 font-size: 0.95rem;
 font-weight: 650;
 color: var(--text);
}

.faq-item .accordion-body p {
 margin: 0;
 color: var(--muted);
 font-size: 0.9rem;
}

/* ---------------- noscript fallback ---------------- */

.noscript-card {
 margin: 26px 0;
 padding: 18px 22px;
 text-align: center;
 border: 1px solid var(--border);
 border-radius: var(--radius);
 background: linear-gradient(180deg, var(--card), var(--card-deep));
 color: var(--muted);
 font-size: 0.92rem;
}

.noscript-card p {
 margin: 0;
}

.noscript-card strong {
 color: var(--text);
}

/* ---------------- footer ---------------- */

.site-footer {
 margin-top: auto;
 border-top: 1px solid var(--border-soft);
 padding: 22px 20px 28px;
 text-align: center;
 color: var(--muted-2);
 font-size: 0.84rem;
}

.site-footer p {
 margin: 0;
}

/* ---------------- responsive ---------------- */

@media (max-width: 760px) {
 .verdict-grid {
  grid-template-columns: 1fr;
  text-align: center;
 }
 .badge-row,
 .stats-row {
  justify-content: center;
 }
 .image-top {
  grid-template-columns: 1fr;
 }
 .image-thumb {
  max-height: 260px;
 }
 .card {
  padding: 16px;
 }
 .choice-grid {
  grid-template-columns: 1fr;
 }
 .file-card {
  flex-wrap: wrap;
 }
 .file-card .dz-file {
  flex-basis: 100%;
 }
}

@media (max-width: 560px) {
 /* Stepper labels shrink to numbers only on small screens. */
 .step-label {
  display: none;
 }
 .step-btn {
  gap: 0;
 }
 .stepper-list {
  justify-content: space-between;
  gap: 6px;
 }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
 html {
  scroll-behavior: auto;
 }
 .gauge-progress,
 .bar-fill,
 .btn,
 .seg-btn,
 .drop-zone,
 .choice-card,
 .step-dot,
 .stepper-sep,
 .accordion-summary .chev {
  transition: none;
 }
 .wizard-step.anim-fwd,
 .wizard-step.anim-back {
  animation: none;
 }
 .btn-spinner {
  animation-duration: 1.6s;
 }
}
