:root {
  /* Paleta oficial H2ON Marketing (extraída de h2onmarketing.com) */
  --navy: #100e11; /* Eclipse */
  --navy-2: #242157; /* Deep Blue */
  --orange: #702bf7; /* Roxo Elétrico — cor de ação/CTA da marca */
  --cream: #f7f4f9; /* Serene */
  --ink: #3a3550; /* Ink */
  --muted: #6b6485;
  --muted-on-dark: #cfc9da;
  --green: #29d381; /* Verde H2ON */
  --yellow: #d99a10;
  --red: #e5484d;
  --border: #e7e2f0;
  --radius: 14px;
  --font-head: 'Work Sans', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

a {
  color: inherit;
}

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

header.site-header {
  padding: 24px 0;
}

.brand {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 15px;
  text-decoration: none;
  color: var(--navy);
}

.brand span {
  color: var(--orange);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 72px;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.hero h1 .accent {
  color: var(--orange);
}

.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 28px;
}

#domain-form {
  display: flex;
  gap: 10px;
  max-width: 560px;
}

#domain-input {
  flex: 1;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: var(--font-body);
  background: #fff;
}

.btn {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 14px;
  border: none;
  border-radius: 10px;
  padding: 16px 24px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 106, 46, 0.35);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.hero-panel {
  background: var(--navy);
  border-radius: 20px;
  padding: 28px;
  color: #fff;
}

.hero-panel-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-on-dark);
  margin-bottom: 14px;
}

.hero-panel-score {
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 800;
  color: var(--orange);
}

.hero-panel-score small {
  font-size: 22px;
  color: var(--muted-on-dark);
  font-weight: 600;
}

/* Steps */
.steps {
  padding: 40px 0 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  color: var(--orange);
  margin-bottom: 8px;
}

.step h3 {
  font-family: var(--font-head);
  margin: 0 0 6px;
  font-size: 17px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

footer.site-footer {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 22, 54, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.modal-head h2 {
  font-family: var(--font-head);
  font-size: 20px;
  margin: 0 0 6px;
}

.modal-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 14.5px;
  background: #fafaf7;
}

.field-domain-display {
  font-weight: 700;
  color: var(--navy);
}

.checkbox-field {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--muted);
  margin: 16px 0;
}

.checkbox-field input {
  margin-top: 3px;
}

.form-error {
  background: #fdecea;
  color: var(--red);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.form-error[hidden] {
  display: none;
}

/* Report page */
.report-header {
  padding: 32px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.report-header h1 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  margin: 4px 0;
}

.report-header .eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  font-weight: 700;
}

.report-header .meta {
  color: var(--muted);
  font-size: 13.5px;
}

/* Loading state */
.loading-screen {
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
  padding: 40px 20px;
}

.loading-screen h2 {
  font-family: var(--font-head);
  font-size: 26px;
  margin: 20px 0 8px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin: 24px 0;
}

.progress-fill {
  height: 100%;
  width: 30%;
  background: var(--orange);
  border-radius: 999px;
  animation: progress-slide 1.8s ease-in-out infinite;
}

@keyframes progress-slide {
  0% {
    transform: translateX(-100%);
    width: 40%;
  }
  50% {
    width: 60%;
  }
  100% {
    transform: translateX(220%);
    width: 40%;
  }
}

.loading-msg {
  color: var(--muted);
  font-size: 14.5px;
}

/* Score summary */
.score-panel {
  background: var(--navy);
  border-radius: 20px;
  color: #fff;
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  margin: 24px 0 32px;
}

.gauge {
  width: 140px;
  height: 140px;
}

.score-panel-text .kicker {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}

.score-panel-text h2 {
  font-family: var(--font-head);
  font-size: 24px;
  margin: 0 0 10px;
}

.score-panel-text p {
  color: var(--muted-on-dark);
  font-size: 14.5px;
  margin: 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.pillar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.pillar-card .label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--muted);
}

.pillar-card .score {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 800;
  margin: 6px 0 4px;
}

.pillar-card .status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.status-otimo {
  background: #e2f6ee;
  color: var(--green);
}

.status-atencao {
  background: #fdf1dc;
  color: var(--yellow);
}

.status-critico {
  background: #fdeceb;
  color: var(--red);
}

.pillar-card .desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

section.block {
  margin-bottom: 40px;
}

section.block h2 {
  font-family: var(--font-head);
  font-size: 22px;
  margin-bottom: 4px;
}

section.block .subtitle {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 18px;
}

.issue-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.issue-card.sev-media {
  border-left-color: var(--yellow);
}

.issue-card.sev-baixa {
  border-left-color: var(--muted);
}

.issue-card .tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.issue-card.sev-media .tag {
  color: var(--yellow);
}

.issue-card.sev-baixa .tag {
  color: var(--muted);
}

.issue-card h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
}

.issue-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.qa-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #fff;
}

.qa-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.qa-summary::-webkit-details-marker {
  display: none;
}

.qa-summary .q-text {
  font-size: 14px;
  font-weight: 600;
}

.pill {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-yes {
  background: #e2f6ee;
  color: var(--green);
}

.pill-no {
  background: #fdeceb;
  color: var(--red);
}

.qa-snippet {
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 13px;
}

.action-plan {
  position: relative;
}

.action-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 14px;
}

.action-item.locked {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.cta-panel {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  margin-top: 8px;
}

.cta-panel h2 {
  font-family: var(--font-head);
  font-size: 26px;
  margin: 0 0 10px;
}

.cta-panel p {
  color: var(--muted-on-dark);
  margin: 0 0 20px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .steps,
  .pillars {
    grid-template-columns: 1fr;
  }
  #domain-form {
    flex-direction: column;
  }
  .score-panel {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}
