/* AR Readiness Checker — static rail styles.
   SR-21 enterprise-design conformance (FOUNDRY build #3, run #35, 2026-08-21).
   Token scale is IDENTICAL to product-photo-prep/web-static/styles.css — the
   design system's single source of truth (enterprise-design token names + values, --r/--rs
   radii, --ease, compact enterprise type scale, Urbanist headings over Inter body,
   pill controls, hairline --br borders, signature indigo->pink/amber gradient on
   the conversion CTA). Dual-mode: OS preference AND explicit [data-color-mode].
   CRUCIBLE ratifies mobile/dark/font at the Day-5 gate.

   Security-justified deviation (ALG-3 S1/S3/S4/SR-8): fonts are SELF-HOSTED via
   @font-face (font-src 'self'), never a third-party font CDN — preserves the
   zero-third-party-network posture and the locked default-src 'none' CSP. Faces
   ship in ./fonts/ at deploy (OFL); if absent, the stack degrades to system sans
   with zero breakage. */

/* ---- Self-hosted faces (no third-party network; font-src 'self') ---- */
@font-face {
  font-family: 'Urbanist'; font-style: normal; font-weight: 400 800;
  font-display: swap; src: url('fonts/urbanist-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 600;
  font-display: swap; src: url('fonts/inter-var.woff2') format('woff2');
}

/* ---- Design-system tokens — light is the public-tool default; full dark parity ---- */
:root,
[data-color-mode="light"] {
  --bg: #f6f6fb; --s1: #ffffff; --s2: #f0edfa; --h: #e9e5f7;
  --br: rgba(17, 13, 38, 0.10);
  --tx: #15121f; --lt: #3c3750; --m: #6a6580;
  --in: #4934bc; --in-2: #4934bc;
  --or: #fe2267; --wn: #b45309; --ok: #15803d; --er: #dc2626; --info: #6a6580;
  --r: 14px; --rs: 8px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --sh-1: 0 1px 3px rgba(17, 13, 38, 0.08), 0 4px 12px rgba(17, 13, 38, 0.06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Urbanist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
[data-color-mode="dark"] {
  --bg: #08060f; --s1: #110e1c; --s2: #1a1530; --h: #1e1a2e;
  --br: rgba(255, 255, 255, 0.08);
  --tx: #e2e8f0; --lt: #cbd5e1; --m: #94a3b8;
  --in: #4934bc; --in-2: #8b7ff5;
  --or: #fe2267; --wn: #ff9e02; --ok: #22c55e; --er: #ef4444; --info: #9a9aad;
  --sh-1: 0 8px 24px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
/* OS-preference default when no explicit data-color-mode is set */
@media (prefers-color-scheme: dark) {
  :root:not([data-color-mode]) {
    --bg: #08060f; --s1: #110e1c; --s2: #1a1530; --h: #1e1a2e;
    --br: rgba(255, 255, 255, 0.08);
    --tx: #e2e8f0; --lt: #cbd5e1; --m: #94a3b8;
    --in: #4934bc; --in-2: #8b7ff5;
    --or: #fe2267; --wn: #ff9e02; --ok: #22c55e; --er: #ef4444; --info: #9a9aad;
    --sh-1: 0 8px 24px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font-family: var(--font); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
code { font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--in); }
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

.wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }

.kicker {
  font-family: var(--display);
  text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
  font-weight: 700; color: var(--in-2); margin: 0 0 6px;
}
h1 { font-family: var(--display); font-weight: 800; font-size: 30px; margin: 0 0 10px; letter-spacing: -0.01em; }
.lede { color: var(--m); margin: 0 0 24px; font-size: 15px; }
.lede code { color: var(--lt); }

.panel {
  background: var(--s1); border: 1px solid var(--br); border-radius: var(--r);
  padding: 22px; box-shadow: var(--sh-1);
}

/* ---- drop zone ---- */
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 40px 20px;
  border: 1.5px dashed var(--br); border-radius: var(--r);
  background: var(--bg); color: var(--m); cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.drop:hover, .drop:focus-visible { border-color: var(--in); color: var(--lt); }
.drop--over { border-color: var(--in); background: var(--s2); color: var(--tx); }
.drop__icon { color: var(--in-2); }
.drop__title { font-family: var(--display); font-weight: 600; font-size: 15px; margin: 0; color: var(--tx); }
.drop__hint { font-size: 13px; margin: 0; color: var(--m); }

.actions { display: flex; gap: 10px; margin: 14px 0 0; }
.btn {
  appearance: none; border: 1px solid var(--br); background: var(--s1); color: var(--tx);
  font: 600 14px/1 var(--display); padding: 11px 20px; border-radius: 360px; cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { border-color: var(--in); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }

.status { margin: 16px 0 0; font-family: var(--display); font-weight: 600; font-size: 15px; min-height: 1.2em; color: var(--lt); }

/* ---- scorecard ---- */
.report { margin: 20px 0 0; }
.scorecard {
  display: flex; align-items: center; gap: 18px;
  padding: 18px; border: 1px solid var(--br); border-radius: var(--r); background: var(--s2);
}
.scorecard__num { display: flex; align-items: baseline; gap: 2px; }
.score { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--ok); }
.score--warn { color: var(--wn); } .score--fail { color: var(--er); }
.scorecard__max { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--m); }
.grade { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0; color: var(--tx); }
.filename { font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--m); margin: 3px 0 0; word-break: break-all; }

/* ---- checklist ---- */
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.check {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--br); border-radius: var(--rs);
}
.badge {
  flex: none; font-family: var(--display); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; border-radius: 999px; color: #fff; margin-top: 1px;
}
.badge--pass { background: var(--ok); } .badge--warn { background: var(--wn); }
.badge--fail { background: var(--er); } .badge--info { background: var(--info); }
.check__body { min-width: 0; flex: 1; }
.check__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.check__label { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--tx); }
.check__value { font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--lt); text-align: right; white-space: nowrap; }
.check__detail { font-size: 13px; color: var(--m); margin: 4px 0 0; }

/* Conversion CTA carries the signature indigo->pink/amber gradient. */
.cta { margin: 22px 0 0; padding: 18px; border: 1px solid var(--br); border-radius: var(--r); background: var(--s2); }
.cta__text { margin: 0 0 12px; font-size: 15px; color: var(--tx); }
.cta__link {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 14px;
  color: #ffffff; text-decoration: none; padding: 11px 22px; border-radius: 360px;
  background: linear-gradient(135deg, var(--or), var(--wn));
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cta__link:hover { transform: translateY(-1px); box-shadow: var(--sh-1); text-decoration: none; }

.foot { margin: 26px 2px 0; color: var(--m); font-size: 13px; }
.foot a { color: var(--in-2); }
