/* ═══ Free ASIN audit funnel — immersive ops-console (restored from legacy /audit) ═══
   Loaded only on /audit. The page body is forced to #0d0d1a by the view. */

.au-page { position: relative; z-index: 1; padding-top: 104px; color: #fff;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif); }
.au-page ::-webkit-scrollbar { width: 4px; }
.au-page ::-webkit-scrollbar-track { background: transparent; }
.au-page ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

@keyframes auPulse   { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes auScan    { 0% { background-position: -200% 0 } 100% { background-position: 200% 0 } }
@keyframes auFadeUp  { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: translateY(0) } }
@keyframes auScoreIn { from { opacity: 0; transform: scale(.3) } to { opacity: 1; transform: scale(1) } }
@keyframes auSpin    { to { transform: rotate(360deg) } }
@keyframes auShimmer { 0% { background-position: -300% 0 } 100% { background-position: 300% 0 } }

.au-amb { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(99,102,241,.07) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 85%, rgba(232,160,37,.05) 0%, transparent 50%); }
.au-grid-lines { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .025;
  background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 60px 60px; }

.au-w { position: relative; z-index: 1; max-width: 1480px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 900px) { .au-w { padding: 0 20px; } }

/* ── Hero ── */
.au-hero-row { display: grid; grid-template-columns: 1fr 500px; gap: 40px; padding: 24px 0 40px; align-items: start; }
@media (max-width: 1100px) { .au-hero-row { grid-template-columns: 1fr; } }

.au-eyebrow { font-family: var(--font-mono, 'JetBrains Mono', monospace); font-size: 10px; font-weight: 600;
  letter-spacing: 3px; color: #e8a025; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.au-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px rgba(34,197,94,.5);
  animation: auPulse 2.4s ease-in-out infinite; }

.au-h1 { font-family: var(--font-heading, 'Poppins', sans-serif); font-size: clamp(34px, 5vw, 52px);
  font-weight: 900; line-height: 1.05; letter-spacing: -2px; margin: 0 0 16px; }
.au-h1-accent { color: #e8a025; }
.au-lede { font-size: 16px; color: rgba(255,255,255,.4); line-height: 1.65; max-width: 520px; margin: 0 0 28px; }

/* ASIN input + run button (single pill) */
.au-iw { display: flex; max-width: 480px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08); transition: border-color .3s; }
.au-iw.armed { border-color: rgba(232,160,37,.3); }
.au-iw-label { display: flex; align-items: center; background: rgba(255,255,255,.03);
  font-family: var(--font-mono, monospace); font-size: 11px; color: rgba(255,255,255,.2); padding: 0 10px 0 20px; }
#asinInput { flex: 1; min-width: 0; background: rgba(255,255,255,.03); border: none; outline: none; color: #fff;
  font-family: var(--font-mono, monospace); font-size: 16px; letter-spacing: 1.5px; padding: 14px 14px;
  text-transform: uppercase; }
#asinInput::placeholder { color: rgba(255,255,255,.2); }
.au-run-btn { background: #e8a025; color: #0d0d1a; border: none; padding: 14px 24px; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: var(--font-mono, monospace); letter-spacing: 1px; white-space: nowrap; transition: all .3s; }
.au-run-btn:hover { filter: brightness(1.06); }
.au-run-btn:disabled { background: rgba(232,160,37,.15); color: #e8a025; cursor: default; }

/* inline progress under the form */
.au-progress { max-width: 480px; margin-top: 12px; }
.au-progress-track { height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; position: relative; }
.au-progress-fill { height: 100%; width: 0%; border-radius: 2px; background: linear-gradient(90deg, #e8a025, #f97316);
  transition: width .5s ease; }
.au-progress-shimmer { position: absolute; inset: 0; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.25) 50%, transparent 100%);
  background-size: 300% 100%; animation: auShimmer 1.8s ease-in-out infinite; }
.au-progress-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.au-spinner { width: 11px; height: 11px; border: 2px solid rgba(232,160,37,.2); border-top-color: #e8a025;
  border-radius: 50%; animation: auSpin .8s linear infinite; flex-shrink: 0; }
.au-progress-pct { font-family: var(--font-mono, monospace); font-size: 11px; color: #e8a025; font-weight: 700; min-width: 36px; }
.au-progress-step { font-family: var(--font-mono, monospace); font-size: 10px; color: rgba(255,255,255,.4);
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.au-form-error { font-family: var(--font-mono, monospace); font-size: 11px; color: #f43f5e; margin-top: 10px; }
.au-fineprint { font-size: 11px; color: rgba(255,255,255,.25); margin-top: 14px; }

/* ── Terminal ── */
.au-terminal { background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.05); border-radius: 10px; overflow: hidden; }
.au-term-head { display: flex; align-items: center; gap: 6px; padding: 10px 16px;
  background: rgba(255,255,255,.02); border-bottom: 1px solid rgba(255,255,255,.04); }
.au-term-dot { width: 8px; height: 8px; border-radius: 50%; }
.au-term-tab { font-family: var(--font-mono, monospace); font-size: 9px; color: rgba(255,255,255,.18); margin-left: 8px; }
.au-term-body { padding: 14px 16px; height: 400px; overflow-y: auto;
  font-family: var(--font-mono, monospace); font-size: 10.5px; line-height: 1.7; color: rgba(255,255,255,.6); }
.au-term-idle { color: rgba(255,255,255,.12); }
.term-line { animation: auFadeUp .2s ease; white-space: pre-wrap; word-break: break-word; }
.term-ts { color: rgba(255,255,255,.1); margin-right: 8px; }

/* ── Roster label ── */
.au-roster-label { font-family: var(--font-mono, monospace); font-size: 9px; font-weight: 600; letter-spacing: 3px;
  color: rgba(255,255,255,.3); margin: 8px 0 14px; display: flex; align-items: center; gap: 10px; }
.au-roster-rule { width: 24px; height: 1px; background: rgba(255,255,255,.1); }

/* ── Agent cards ── */
.au-agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: start; }
@media (max-width: 1100px) { .au-agent-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .au-agent-grid { grid-template-columns: repeat(2, 1fr); } }

.au-cc { --ac: #e8a025; position: relative; overflow: hidden; cursor: pointer;
  background: rgba(255,255,255,.015); border: 1px solid rgba(255,255,255,.04); border-radius: 10px;
  padding: 14px 16px; transition: all .3s; }
.au-cc:hover { background: rgba(255,255,255,.03); }
.au-cc.on { background: rgba(255,255,255,.04); }
.au-cc.done { border-color: color-mix(in srgb, var(--ac) 22%, transparent); }
.au-scanbar { position: absolute; top: 0; left: 0; right: 0; height: 2px; display: none;
  background: linear-gradient(90deg, transparent, var(--ac), transparent); background-size: 200% 100%;
  animation: auScan 2s linear infinite; }
.au-cc.on .au-scanbar { display: block; }
.au-cc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.au-cc-code { font-family: var(--font-mono, monospace); font-size: 9px; font-weight: 700; color: var(--ac); letter-spacing: 1px; }
.au-cc-score { font-family: var(--font-mono, monospace); font-size: 9px; color: rgba(255,255,255,.15); }
.au-cc-score.scored { font-size: 13px; font-weight: 700; animation: auScoreIn .3s ease; }
.au-cc-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.6); margin-bottom: 6px; line-height: 1.3; }
.au-cc-pips { display: flex; gap: 2px; }
.au-pip { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.06); transition: all .3s; }
.au-pip.lit { background: var(--ac); box-shadow: 0 0 6px color-mix(in srgb, var(--ac) 40%, transparent); }
.au-cc-list { margin-top: 8px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 6px; display: none; }
.au-cc.exp .au-cc-list { display: block; }
.au-mi { display: flex; align-items: center; gap: 6px; padding: 2px 0; font-size: 9px; color: rgba(255,255,255,.18); transition: color .3s; }
.au-mi-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.1); flex-shrink: 0; transition: all .3s; }

/* ── Results ── */
.au-results { margin-top: 32px; animation: auFadeUp .4s ease; }
.au-product { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; margin: 0 auto 8px;
  max-width: 760px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 18px; }
.au-product img, .au-prod-noimg { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; box-sizing: border-box; }
.au-prod-noimg { background: rgba(255,255,255,.04); }
.au-prod-title { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 4px; }
.au-prod-brand { color: rgba(255,255,255,.4); font-size: 12px; }
.au-prod-asin { font-family: var(--font-mono, monospace); font-size: 10px; color: rgba(255,255,255,.25); margin-top: 4px; letter-spacing: 1px; }

.au-compliance { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 12px auto;
  background: rgba(244,63,94,.08); border: 1px solid rgba(244,63,94,.3); border-radius: 10px; padding: 14px 18px; }
.au-risk-badge { background: #f43f5e; color: #fff; font-family: var(--font-mono, monospace); font-size: 10px; font-weight: 700;
  padding: 4px 8px; border-radius: 4px; letter-spacing: 1px; white-space: nowrap; }
.au-compliance span:last-child { color: #fecaca; font-size: 13px; }

.au-overall { text-align: center; padding: 40px 0 24px; }
.au-overall .au-roster-label { color: rgba(255,255,255,.3); margin-bottom: 20px; }
.au-overall-ring { margin: 0 auto 16px; width: 150px; }
.au-overall-grade { font-family: var(--font-mono, monospace); font-size: 14px; font-weight: 700; letter-spacing: 2px; margin-bottom: 4px; }
.au-overall-summary { font-size: 15px; color: rgba(255,255,255,.5); max-width: 640px; margin: 0 auto; line-height: 1.6; }

.au-dim-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 1100px) { .au-dim-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .au-dim-grid { grid-template-columns: repeat(2, 1fr); } }
.au-dim { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); border-radius: 12px;
  padding: 18px 12px; text-align: center; animation: auFadeUp .4s ease; }
.au-dim .au-ring { display: block; margin: 0 auto; }
.au-dim-insights, .au-dim-none { width: 70px; height: 70px; margin: 0 auto; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.au-dim-insights { border: 2px solid #22c55e; background: rgba(34,197,94,.06); color: #22c55e;
  font-family: var(--font-mono, monospace); font-size: 22px; font-weight: 700; line-height: 1; }
.au-dim-insights span { font-size: 7px; letter-spacing: 1px; color: rgba(34,197,94,.6); margin-top: 2px; }
.au-dim-none { border: 2px solid rgba(255,255,255,.08); color: rgba(255,255,255,.2);
  font-family: var(--font-mono, monospace); font-size: 16px; }
.au-dim-label { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.5); margin-top: 6px; }
.au-dim-label span { display: block; font-family: var(--font-mono, monospace); font-size: 9px; letter-spacing: 1px; opacity: .6; margin-top: 2px; }
.au-ring-fill { transition: stroke-dashoffset 1.1s cubic-bezier(.4, 0, .2, 1); }

/* ── Email gate ── */
.au-gate { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: linear-gradient(180deg, rgba(232,160,37,.06) 0%, rgba(232,160,37,.02) 100%);
  border: 1px solid rgba(232,160,37,.15); border-radius: 16px; padding: 40px 48px; position: relative; overflow: hidden; }
.au-gate::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232,160,37,.5), transparent); }
.au-gate-h { font-family: var(--font-heading, 'Poppins', sans-serif); font-size: 28px; font-weight: 800; line-height: 1.2; margin: 12px 0; }
.au-gate-p { font-size: 14px; color: rgba(255,255,255,.4); line-height: 1.6; margin-bottom: 20px; }
.au-email-row { display: flex; max-width: 420px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
#emailInput { flex: 1; min-width: 0; background: rgba(255,255,255,.03); border: none; outline: none; color: #fff;
  font-size: 14px; padding: 12px 16px; }
#emailInput::placeholder { color: rgba(255,255,255,.2); }
#emailInput:disabled { opacity: .5; }
.au-email-row .au-run-btn { padding: 12px 24px; }
.au-email-status { font-family: var(--font-mono, monospace); font-size: 11px; margin-top: 10px; min-height: 1em; }
.au-gate-right { background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 24px 28px; }
.au-tf { list-style: none; margin: 0; padding: 0; }
.au-tf li { display: flex; gap: 10px; align-items: baseline; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.7); margin-bottom: 10px; }
.au-tf-num { font-family: var(--font-mono, monospace); font-weight: 700; color: #e8a025; font-size: 12px; }
.au-tf-empty { color: rgba(255,255,255,.3); font-style: italic; }
.au-gate-checklist { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.06);
  font-family: var(--font-mono, monospace); font-size: 10px; color: rgba(255,255,255,.3); }
.au-gate-checklist li { padding: 3px 0 3px 18px; position: relative; }
.au-gate-checklist li::before { content: "✓"; position: absolute; left: 0; color: #22c55e; }

@media (max-width: 820px) {
  .au-gate { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
  .au-gate-h { font-size: 22px; }
}

/* ── Tail: breathing room + CONTEXTUA sign-off above the site footer ── */
.au-tail-spacer { height: 56px; }
.au-foot { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.04);
  padding: 24px 56px; text-align: center; font-family: var(--font-mono, monospace);
  font-size: 10px; letter-spacing: 1px; color: rgba(255,255,255,.18); }
.au-foot a { color: rgba(255,255,255,.32); text-decoration: none; }
.au-foot a:hover { color: #e8a025; }
