/* ═══════════════════════════════════════════
   MIZAR CHECKUP WIZARD – DESIGN SYSTEM
   Mobile-first, responsive, modern
═══════════════════════════════════════════ */

/* ── FONT & RESET ── */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #f4f6fb;
  color: #1a2744;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ── VARIABLES ── */
:root {
  --blue-dark: #0a2d6e;
  --blue-mid: #1a4db5;
  --blue-accent: #1a56e8;
  --blue-light: #e8f0fe;
  --orange: #f57c00;
  --orange-light: #fff3e0;
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --bg: #f4f6fb;
  --bg-white: #ffffff;
  --text-dark: #1a2744;
  --text-mid: #4b5563;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 45, 110, 0.1);
  --shadow-lg: 0 8px 32px rgba(10, 45, 110, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  /* display: flex;
  flex-direction: column; */
  cursor: pointer;
  width: 200px;
}

/* .logo-text {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--blue-dark);
  line-height: 1;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
} */

.header-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  background: #dcfce7;
  border-radius: 99px;
  padding: 4px 12px;
}

.badge-icon {
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════
   SECTIONS VISIBILITY
═══════════════════════════════════════════ */
.section-landing,
.section-wizard,
.section-pagella {
  display: none;
}

.section-landing.active,
.section-wizard.active,
.section-pagella.active {
  display: block;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-size: 0.95rem;
  padding: 12px 24px;
  line-height: 1;
}

.btn-primary {
  background: var(--blue-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 86, 232, 0.3);
}

.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 86, 232, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  border: 2px solid var(--blue-accent);
  color: var(--blue-accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue-light);
}

.btn-ghost {
  color: var(--text-mid);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--blue-accent);
  background: var(--blue-light);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 14px 32px;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 8px 16px;
}

.btn-arrow {
  font-size: 1.1rem;
}

.btn[data-state="loading"] {
  opacity: 0.7;
  pointer-events: none;
}

.btn[data-state="success"] {
  background: var(--green);
}

.btn[data-state="error"] {
  background: var(--red);
}

/* ═══════════════════════════════════════════
   LANDING – HERO
═══════════════════════════════════════════ */
.landing-hero {
  background: linear-gradient(135deg, #0a2d6e 0%, #1a4db5 60%, #1a56e8 100%);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 18px;
}

.hero-title .highlight {
  color: #ffd54f;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
}

.check-green {
  color: #86efac;
  font-weight: 700;
}

/* Hero preview card */
.hero-card-wrap {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
}

.hero-card-top {
  margin-bottom: 20px;
}

.mini-progress-wrap {
  background: #e5e7eb;
  border-radius: 99px;
  height: 8px;
  margin-bottom: 6px;
}

.mini-progress-bar {
  background: linear-gradient(90deg, var(--blue-accent), #60a5fa);
  border-radius: 99px;
  height: 100%;
}

.mini-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.mini-semaforo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.mini-semaforo.yellow {
  background: #fffbeb;
}

.semaforo-arc {
  width: 70px;
  height: 35px;
  border-top-left-radius: 70px;
  border-top-right-radius: 70px;
  border: 8px solid var(--yellow);
  border-bottom: none;
  margin-bottom: 8px;
}

.semaforo-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--yellow);
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  border-radius: 6px;
  padding: 6px 8px;
}

.mini-item.ok {
  background: #dcfce7;
  color: #166534;
}

.mini-item.warn {
  background: #fef3c7;
  color: #92400e;
}

/* ═══════════════════════════════════════════
   LANDING – HOW IT WORKS
═══════════════════════════════════════════ */
.how-it-works {
  padding: 64px 0;
  background: var(--bg-white);
}

.section-title {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--blue-accent);
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
}

/* ═══════════════════════════════════════════
   LANDING – WHY MIZAR
═══════════════════════════════════════════ */
.why-mizar {
  padding: 64px 0;
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.why-text h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 16px;
}

.why-text p {
  color: var(--text-mid);
  margin-bottom: 20px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
  font-weight: 500;
}

.check-blue {
  color: var(--blue-accent);
  font-weight: 700;
}

.contact-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--blue-accent);
}

/* ═══════════════════════════════════════════
   WIZARD
═══════════════════════════════════════════ */
.section-wizard {
  background: var(--bg);
  min-height: calc(100vh - 64px);
  padding: 32px 0 80px;
}

.wizard-wrap {
  max-width: 680px;
}

/* Progress */
.progress-header {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.progress-section-label {
  font-size: 0.8rem;
  color: var(--blue-accent);
  font-weight: 600;
  background: var(--blue-light);
  padding: 2px 10px;
  border-radius: 99px;
}

.progress-bar-track {
  background: #e5e7eb;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--blue-accent), #60a5fa);
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-next-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* Wizard card */
.wizard-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 40px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  min-height: 300px;
  animation: fadeSlideIn 0.3s ease forwards;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.wizard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 16px;
  color: var(--text-mid);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--blue-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Step question */
.step-section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-accent);
  background: var(--blue-light);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.step-question {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-description {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 28px;
}

/* Icon grid (A1) */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 500px) {
  .icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.icon-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  background: var(--bg-white);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-mid);
}

.icon-grid-item .icon {
  font-size: 1.8rem;
  line-height: 1;
}

.icon-grid-item:hover {
  border-color: var(--blue-accent);
  background: var(--blue-light);
  color: var(--blue-dark);
}

.icon-grid-item.selected {
  border-color: var(--blue-accent);
  background: var(--blue-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 86, 232, 0.25);
}

/* Radio pills */
.radio-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 500px) {
  .radio-pills.inline {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.radio-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--bg-white);
  position: relative;
  gap: 5px;
}

.radio-pill .pill-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-pill:hover {
  border-color: var(--blue-accent);
  background: var(--blue-light);
}

.radio-pill.selected {
  border-color: var(--blue-accent);
  background: var(--blue-light);
  color: var(--blue-dark);
}

.radio-pill.selected .pill-check {
  background: var(--blue-accent);
  border-color: var(--blue-accent);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
}

.radio-pill .partner-tag {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--orange);
  color: #fff;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.radio-pill-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Select */
.step-select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  transition: border-color var(--transition);
}

.step-select:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(26, 86, 232, 0.1);
}

/* User form */
.user-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 540px) {
  .user-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.form-field input {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--transition);
}

.form-field input:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(26, 86, 232, 0.1);
}

.form-field input.error {
  border-color: var(--red);
}

.optional-tag {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 400;
}

/* Error message */
.validation-error {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 10px;
  display: none;
}

.validation-error.visible {
  display: block;
}

/* Nav buttons */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

/* ═══════════════════════════════════════════
   PAGELLA
═══════════════════════════════════════════ */
.section-pagella {
  background: var(--bg);
  padding: 32px 0 80px;
}

.pagella-wrap {
  max-width: 760px;
}

/* Header */
.pagella-header {
  background: var(--blue-dark);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  color: #fff;
}

.pagella-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.pagella-logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pagella-doc-type {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 99px;
}

.pagella-company-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.company-info-item {
}

.company-info-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.company-info-value {
  font-size: 0.93rem;
  font-weight: 600;
  color: #fff;
}

/* Semaforo */
.pagella-semaforo {
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.pagella-semaforo.green {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border: 2px solid #86efac;
}

.pagella-semaforo.yellow {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid #fcd34d;
}

.pagella-semaforo.red {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 2px solid #fca5a5;
}

.semaforo-gauge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.semaforo-gauge {
  width: 110px;
  height: 55px;
  border-top-left-radius: 110px;
  border-top-right-radius: 110px;
  border-width: 12px;
  border-style: solid;
  border-bottom: none;
}

.pagella-semaforo.green .semaforo-gauge {
  border-color: var(--green);
}

.pagella-semaforo.yellow .semaforo-gauge {
  border-color: var(--yellow);
}

.pagella-semaforo.red .semaforo-gauge {
  border-color: var(--red);
}

.semaforo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 99px;
  padding: 4px 14px;
  margin-bottom: 8px;
}

.pagella-semaforo.green .semaforo-badge {
  background: #16a34a;
  color: #fff;
}

.pagella-semaforo.yellow .semaforo-badge {
  background: #d97706;
  color: #fff;
}

.pagella-semaforo.red .semaforo-badge {
  background: #dc2626;
  color: #fff;
}

.semaforo-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.pagella-semaforo.green .semaforo-title {
  color: #14532d;
}

.pagella-semaforo.yellow .semaforo-title {
  color: #78350f;
}

.pagella-semaforo.red .semaforo-title {
  color: #7f1d1d;
}

.semaforo-description {
  font-size: 0.93rem;
  max-width: 480px;
  margin: 0 auto;
}

.pagella-semaforo.green .semaforo-description {
  color: #166534;
}

.pagella-semaforo.yellow .semaforo-description {
  color: #92400e;
}

.pagella-semaforo.red .semaforo-description {
  color: #991b1b;
}

/* Analysis columns */
.pagella-analysis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .pagella-analysis {
    grid-template-columns: 1fr 1fr;
  }
}

.analysis-box {
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
}

.analysis-box.strength {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.analysis-box.weakness {
  background: #fef2f2;
  border-color: #fecaca;
}

.analysis-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.analysis-box.strength h3 {
  color: #166534;
}

.analysis-box.weakness h3 {
  color: #991b1b;
}

.analysis-box ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analysis-box li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
}

.analysis-box.strength li {
  color: #166534;
}

.analysis-box.weakness li {
  color: #991b1b;
}

.analysis-box li::before {
  flex-shrink: 0;
  margin-top: 2px;
}

.analysis-box.strength li::before {
  content: "✔";
  font-weight: 700;
}

.analysis-box.weakness li::before {
  content: "✗";
  font-weight: 700;
}

/* Verify grid */
.pagella-verify {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.pagella-verify h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 18px;
}

.verify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.verify-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

.verify-item .vi-icon {
  font-size: 1.1rem;
}

/* Pagella CTA */
.pagella-cta {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  color: #fff;
  margin-bottom: 16px;
}

/* @media (min-width: 640px) {
  .pagella-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
} */

.pagella-cta-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pagella-cta-text p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 340px;
}

.pagella-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .pagella-cta-actions {
    flex-direction: row;
  }
}

.pagella-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.pagella-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.email-status {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 4px;
  min-height: 20px;
  transition: color var(--transition);
}

.email-status.ok {
  color: var(--green);
}

.email-status.err {
  color: var(--red);
}

.pagella-reset {
  text-align: center;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--blue-dark);
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-contacts {
  display: flex;
  gap: 20px;
}

.footer-contacts a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-contacts a:hover {
  color: #fff;
}

/* ═══════════════════════════════════════════
   RESPONSIVE TWEAKS
═══════════════════════════════════════════ */
@media (max-width: 480px) {
  .header-inner {
    gap: 60px;
  }

  .header-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  /* 
  .logo-sub {
    display: none;
  } */

  .pagella-header {
    padding: 20px;
  }

  .pagella-cta {
    padding: 20px;
  }

  .wizard-nav {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .wizard-nav .btn {
    width: 100%;
    justify-content: center;
  }

  .radio-pill {
    font-size: 0.87rem;
  }

  .progress-header {
    padding: 14px 16px;
  }
}

/* ═══════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
