@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand-blue: #1400FF;
  --ink: #0A0A0A;
  --cream: #F7F5F0;
  --off-white: #FBFAF8;
  --border: #E7E4DC;
  --critical: #C4291A;
  --moderate: #B8860B;
  --high: #1A7A3C;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: transparent; /* blends into whatever page embeds this */
  color: var(--ink);
  line-height: 1.5;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--brand-blue);
  border-radius: 2px;
  display: inline-block;
}

h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.sub {
  font-size: 17px;
  color: #444;
  margin: 0 0 32px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="url"],
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 16px;
}
input:focus { outline: 2px solid var(--brand-blue); border-color: transparent; }

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.score-display {
  text-align: center;
  padding: 12px 0 8px;
}
.score-number {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.score-total { font-size: 24px; color: #999; font-weight: 600; }

.band-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 12px;
}
.band-critical { background: #FDEDEB; color: var(--critical); }
.band-moderate { background: #FBF3DD; color: var(--moderate); }
.band-high-performing { background: #E7F6EC; color: var(--high); }

.dimension-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.dimension-row:last-child { border-bottom: none; }
.dimension-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.dimension-name { font-weight: 700; font-size: 15px; }
.dimension-score { font-weight: 700; color: var(--brand-blue); font-size: 14px; }
.dimension-diagnosis { font-size: 14px; color: #444; margin: 0; }

.fix-first {
  background: var(--cream);
  border-radius: 12px;
  padding: 20px;
  margin-top: 8px;
}
.fix-first .label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-blue);
  margin-bottom: 6px;
  display: block;
}

.error-box {
  background: #FDEDEB;
  color: var(--critical);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

.hidden { display: none !important; }

.footer-note {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 32px;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
