/* ============================================================
   Design tokens — matched to sheinnovatesai.com
   (brand navy #0F2A5C pulled directly from the live site's
   meta theme-color; light background to match the real site
   instead of a dark theme)
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --surface: #F7F9FC;
  --surface-raised: #FFFFFF;
  --line: #E3E8F0;
  --line-soft: #EDF1F7;

  --text: #172033;
  --text-muted: #5B6779;
  --text-dim: #8B96A8;

  --navy: #0F2A5C;
  --navy-light: #1E4488;
  --navy-tint: #EAF0FB;

  --good: #178A4C;
  --good-tint: #E7F6ED;
  --mid: #B8790C;
  --mid-tint: #FCF1DF;
  --poor: #C4392B;
  --poor-tint: #FBEAE8;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.scanlines { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--navy); }
.brand-logo-img { height: 34px; width: auto; display: block; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.eyebrow .tm { color: var(--navy); }

/* ============================================================
   Hero / scan console
   ============================================================ */
.scan-hero {
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 880px) {
  .scan-hero { grid-template-columns: 1fr; padding-top: 40px; }
}

.scan-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.scan-hero-copy .sub {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 46ch;
}

.console-frame {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  box-shadow: 0 20px 50px -24px rgba(15, 42, 92, 0.18);
}

.console-ring {
  position: relative;
  width: 176px;
  height: 176px;
}
.ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 8;
}
.ring-progress {
  fill: none;
  stroke: var(--navy);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 565.48;
  transition: stroke-dashoffset 1.1s cubic-bezier(.4,0,.2,1), stroke 0.4s;
}
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.ring-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.ring-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
}

.sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  background: conic-gradient(from 0deg, rgba(15,42,92,0.16), transparent 30%);
  animation: spin 1.4s linear infinite;
}
.sweep.active { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.scan-form { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.field-label .optional { color: var(--text-dim); font-weight: 400; }
.field-row { display: flex; gap: 12px; }
@media (max-width: 460px) { .field-row { flex-direction: column; } }

input[type="text"], input[type="email"] {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
input::placeholder { color: var(--text-dim); }
input:focus { border-color: var(--navy); }
input:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }

.scan-btn {
  margin-top: 6px;
  background: var(--navy);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.scan-btn:hover { background: var(--navy-light); }
.scan-btn:active { transform: scale(0.99); }
.scan-btn:disabled { background: #8FA0C4; cursor: progress; }
.scan-btn:focus-visible { outline: 2px solid var(--navy-light); outline-offset: 2px; }

.form-note { font-size: 12px; color: var(--text-dim); text-align: center; margin: 0; }

/* ============================================================
   Error banner
   ============================================================ */
.error-banner {
  background: var(--poor-tint);
  border-top: 1px solid #F3CFC9;
  border-bottom: 1px solid #F3CFC9;
  padding: 16px 0;
  color: var(--poor);
  font-size: 14px;
  position: relative;
  z-index: 2;
}

/* ============================================================
   Results
   ============================================================ */
.results { padding: 56px 24px 80px; position: relative; z-index: 2; }
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.results-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.results-head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0;
  font-weight: 600;
  word-break: break-all;
  color: var(--navy);
}
.results-timestamp { font-size: 12px; color: var(--text-dim); margin-top: 4px; font-family: var(--font-mono); }
.rescan-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-body);
}
.rescan-btn:hover { border-color: var(--navy); color: var(--navy); }

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.score-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.score-card.overall {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--navy-tint);
  border-color: #C9D8F2;
}
.score-card-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.score-card-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.score-card-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.score-card.overall .score-card-value { font-size: 52px; }
.score-bar-track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease; }

.tier-good { color: var(--good); }
.tier-mid { color: var(--mid); }
.tier-poor { color: var(--poor); }
.bar-good { background: var(--good); }
.bar-mid { background: var(--mid); }
.bar-poor { background: var(--poor); }

.check-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.check-item { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-muted); align-items: flex-start; }
.check-icon { flex-shrink: 0; font-family: var(--font-mono); font-size: 12px; margin-top: 1px; }
.check-item.pass .check-icon { color: var(--good); }
.check-item.fail .check-icon { color: var(--text-dim); }

.recs-panel {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 32px;
}
.recs-head h3 { font-family: var(--font-display); margin: 4px 0 18px; font-size: 19px; color: var(--navy); }
.recs-list { list-style: none; margin: 0; padding: 0; counter-reset: rec; display: flex; flex-direction: column; gap: 14px; }
.rec-item {
  counter-increment: rec;
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.rec-item::before {
  content: counter(rec, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--navy);
  font-size: 13px;
  flex-shrink: 0;
  padding-top: 1px;
}
.rec-body { flex: 1; }
.rec-action { font-weight: 600; font-size: 14px; margin-bottom: 3px; color: var(--text); }
.rec-why { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.rec-cat { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 4px; display: block; }

.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 12px;
  padding: 28px;
  flex-wrap: wrap;
}
.cta-panel h3 { font-family: var(--font-display); margin: 0 0 8px; font-size: 18px; color: #FFFFFF; }
.cta-panel p { margin: 0; color: #C9D8F2; font-size: 14px; max-width: 52ch; }
.cta-btn {
  background: #FFFFFF;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 12px 20px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cta-btn:hover { background: #EAF0FB; }

/* ============================================================
   Quick contact strip
   ============================================================ */
.quick-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 4px 0;
}
.quick-contact-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.quick-contact-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quick-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.quick-contact-link:hover {
  border-color: var(--navy);
  background: var(--navy-tint);
}
.qc-icon {
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--text-dim);
  font-size: 12.5px;
  position: relative;
  z-index: 2;
}
