:root {
  --navy: #1f3b57;
  --accent: #c0722e;
  --grey: #595959;
  --light: #f4f5f7;
  --high: #c0392b;
  --medium: #c0722e;
  --low: #8a8a8a;
  --info: #2f7d9e;
  --good: #2e8b57;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Calibri, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.5;
}

.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.hero {
  background: linear-gradient(180deg, var(--navy) 0%, #274b6d 100%);
  color: #fff;
  padding: 56px 0 40px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 8px;
}

.hero h1 { font-size: 32px; margin: 0 0 12px; line-height: 1.25; }
.subtitle { font-size: 16px; color: #d8e0e8; max-width: 560px; margin: 0 0 28px; }

form { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 20px; }

.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }

label { font-size: 13px; color: #cdd8e2; }

input[type="text"], textarea {
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.95);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}

.field-hint { font-size: 12px; color: #b7c3cf; margin: 0; }

button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}
button:hover { opacity: 0.92; }
button:disabled { opacity: 0.6; cursor: default; }

.disclaimer { font-size: 12px; color: #b7c3cf; margin-top: 12px; }

main.container { padding: 40px 24px 60px; }

.hidden { display: none !important; }

#loading { text-align: center; padding: 60px 0; color: var(--grey); }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 16px;
  border: 3px solid #e0e0e0; border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-box {
  background: #fdecea; border: 1px solid #f5c6cb; color: #8a1f11;
  padding: 14px 16px; border-radius: 8px; margin-top: 20px;
}

.confirmation-box {
  background: #eaf6ee; border: 1px solid #bfe3cb; color: #1e5631;
  padding: 24px; border-radius: 12px; margin-top: 20px; text-align: center;
}
.confirmation-box h2 { margin: 0 0 8px; font-size: 20px; }
.confirmation-box p { margin: 0; font-size: 15px; }

/* --- Report --- */
.score-summary { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }

.score-card {
  flex: 1; min-width: 150px;
  border: 1px solid #e4e4e4; border-radius: 12px; padding: 18px;
  text-align: center; background: var(--light);
}
.score-card.overall { background: var(--navy); color: #fff; }
.score-card .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75; margin-bottom: 6px; }
.score-card .value { font-size: 36px; font-weight: 700; }

.pillar-bar { height: 8px; border-radius: 4px; background: #e0e0e0; margin-top: 10px; overflow: hidden; }
.pillar-bar > div { height: 100%; border-radius: 4px; background: var(--accent); }

h2.section-title { font-size: 20px; margin: 36px 0 14px; color: var(--navy); border-bottom: 2px solid #eee; padding-bottom: 8px; }

.quick-wins { list-style: none; padding: 0; margin: 0; }
.quick-wins li {
  padding: 12px 14px; border-radius: 8px; margin-bottom: 8px;
  border-left: 4px solid var(--accent); background: var(--light);
  font-size: 14px;
}

.findings-group { margin-bottom: 24px; }
.findings-group h3 { font-size: 16px; color: var(--navy); margin-bottom: 10px; }
.finding {
  display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 14px;
}
.badge {
  flex-shrink: 0; font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; color: #fff; height: fit-content;
}
.badge.high { background: var(--high); }
.badge.medium { background: var(--medium); }
.badge.low { background: var(--low); }
.badge.info { background: var(--info); }

.cta-box {
  margin-top: 40px; padding: 24px; border-radius: 12px;
  background: var(--navy); color: #fff; text-align: center;
}
.cta-box h3 { margin: 0 0 8px; }
.cta-box p { margin: 0 0 16px; color: #d8e0e8; }
.cta-box a {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 24px; border-radius: 8px; font-weight: 600;
}

footer { text-align: center; padding: 24px; color: var(--grey); font-size: 12px; }

/* --- Modo incorporado (iframe dentro de outra página) --- */
html.embed-mode body { background: transparent; }
html.embed-mode .hero {
  background: transparent;
  color: #1F2C28;
  padding: 8px 0 24px;
}
html.embed-mode .eyebrow,
html.embed-mode .hero h1,
html.embed-mode .subtitle {
  display: none;
}
html.embed-mode form {
  background: #FAF7F1;
  border: 1px solid #e4ddd0;
}
html.embed-mode label { color: #3a4a44; }
html.embed-mode input[type="text"] { background: #fff; }
html.embed-mode .field-hint,
html.embed-mode .disclaimer { color: #6b7a74; }
html.embed-mode button { background: #C4954A; }
html.embed-mode main.container { padding: 0 24px 24px; }
html.embed-mode footer { display: none; }
html.embed-mode .confirmation-box { margin-top: 12px; }
