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

.hb-diag,
.hb-diag * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.hb-diag {
  --hb-orange: #EF4B0E;
  --hb-orange-dark: #C73B07;
  --hb-orange-soft: #FDE6DC;
  --hb-orange-tint: #FFF3EC;
  --hb-brown: #3B2117;
  --hb-cream: #F7F0E9;
  --hb-white: #FFFFFF;
  --hb-grey-100: #F5F5F5;
  --hb-grey-200: #E9E9E9;
  --hb-grey-500: #8A8A8A;
  --hb-green: #2FA84F;
  --hb-shadow: 0 12px 40px rgba(59, 33, 23, 0.10);
  --hb-radius: 18px;
  --hb-radius-sm: 12px;

  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--hb-brown);
  line-height: 1.5;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  background: transparent;
}

.hb-diag .hb-h1 {
  font-family: 'Roboto Condensed', 'Anton', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.95;
  color: var(--hb-brown);
  text-transform: uppercase;
  margin: 8px 0 18px;
  letter-spacing: -0.5px;
}
.hb-diag .hb-h1--accent { color: var(--hb-orange); display: block; }

.hb-diag .hb-h2 {
  font-family: 'Roboto Condensed', 'Anton', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.1;
  color: var(--hb-brown);
  margin: 0 0 20px;
}

.hb-diag .hb-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--hb-orange);
  text-transform: uppercase;
  margin: 0 0 4px;
}

.hb-diag .hb-lead {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--hb-brown);
  margin: 0 0 12px;
}

.hb-diag .hb-sub {
  font-size: 15px;
  color: #6B4A3A;
  margin: 0 0 22px;
  max-width: 560px;
}

.hb-diag .hb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.hb-diag .hb-brand-hb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--hb-orange-tint);
  color: var(--hb-orange);
  font-weight: 900;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 18px;
  border-radius: 10px;
}
.hb-diag .hb-brand-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--hb-brown);
}
.hb-diag .hb-brand-tag {
  font-size: 11px;
  color: var(--hb-orange);
  font-weight: 700;
  letter-spacing: 1px;
}

.hb-diag .hb-screen { display: none; animation: hb-fade .35s ease-out; }
.hb-diag .hb-screen[aria-current="true"] { display: block; }

@keyframes hb-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hb-diag .hb-landing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  background: var(--hb-orange-tint);
  border-radius: var(--hb-radius);
  padding: 32px 24px;
}
@media (min-width: 900px) {
  .hb-diag .hb-landing-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    padding: 48px 48px;
  }
}

.hb-diag .hb-landing-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--hb-radius);
  overflow: hidden;
  background-color: #FFF3EC;
  min-height: 320px;
}
.hb-diag .hb-landing-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hb-diag .hb-visual-frame,
.hb-diag .hb-visual-tape { display: none; }

.hb-diag .hb-badges {
  list-style: none;
  padding: 0; margin: 0 0 26px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.hb-diag .hb-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--hb-white);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hb-brown);
  box-shadow: 0 2px 8px rgba(59,33,23,.06);
}
.hb-diag .hb-badge-ico {
  color: var(--hb-orange);
  font-size: 15px;
  font-weight: 700;
}

.hb-diag .hb-profiles {
  margin-top: 28px;
  padding: 22px 16px;
  background: var(--hb-white);
  border-radius: var(--hb-radius);
  border: 1px solid var(--hb-grey-200);
  text-align: center;
}
.hb-diag .hb-profiles-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--hb-brown);
  text-transform: uppercase;
  margin: 0 0 16px;
  opacity: .7;
}
.hb-diag .hb-profiles-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) {
  .hb-diag .hb-profiles-list { grid-template-columns: repeat(5, 1fr); }
}
.hb-diag .hb-profile-ico {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--hb-orange); text-transform: uppercase;
}
.hb-diag .hb-profile-ico-in {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  background: var(--hb-orange-tint);
  border-radius: 50%;
  font-size: 26px;
}

.hb-diag .hb-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .2s ease, background .2s ease;
  min-height: 52px;
  min-width: 200px;
  text-decoration: none;
}
.hb-diag .hb-cta:disabled { opacity: .45; cursor: not-allowed; }
.hb-diag .hb-cta--primary {
  background: var(--hb-orange);
  color: var(--hb-white);
  box-shadow: 0 8px 20px rgba(239,75,14,.28);
}
.hb-diag .hb-cta--primary:hover:not(:disabled) { background: var(--hb-orange-dark); color: var(--hb-white); }
.hb-diag .hb-cta--primary:active:not(:disabled) { transform: translateY(1px); }

.hb-diag .hb-cta--ghost {
  background: transparent;
  color: var(--hb-brown);
  border: 1px solid var(--hb-grey-200);
  min-width: 130px;
}
.hb-diag .hb-cta--ghost:hover { background: var(--hb-grey-100); color: var(--hb-brown); }

.hb-diag .hb-cta-arrow { font-size: 18px; line-height: 1; }
.hb-diag .hb-cta-arrow--left { margin-right: 4px; }

#hb-questionnaire {
  display: none;
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 0;
}
.hb-diag[data-step-active="1"] #hb-questionnaire { display: block; }

.hb-diag .hb-step-container {
  background: var(--hb-white);
  border-radius: var(--hb-radius);
  padding: 32px 24px;
  box-shadow: var(--hb-shadow);
  min-height: 320px;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .hb-diag .hb-step-container { padding: 40px 40px; }
}

.hb-diag .hb-progress { padding: 0 4px; }
.hb-diag .hb-progress-track {
  height: 6px;
  width: 100%;
  background: var(--hb-orange-tint);
  border-radius: 999px;
  overflow: hidden;
}
.hb-diag .hb-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--hb-orange) 0%, var(--hb-orange-dark) 100%);
  border-radius: 999px;
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}
.hb-diag .hb-progress-meta {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 600;
  color: var(--hb-brown);
  margin-top: 8px;
  letter-spacing: .5px;
}
.hb-diag .hb-progress-percent { color: var(--hb-orange); font-weight: 700; }

.hb-diag .hb-question-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--hb-brown);
  margin: 0 0 10px;
  line-height: 1.2;
}
.hb-diag .hb-question-hint {
  font-size: 13px;
  color: var(--hb-grey-500);
  margin: 0 0 20px;
}

.hb-diag .hb-options {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 10px;
}

.hb-diag .hb-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--hb-grey-200);
  border-radius: var(--hb-radius-sm);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--hb-brown);
  transition: all .15s ease;
  background: var(--hb-white);
}
.hb-diag .hb-option:hover { border-color: var(--hb-orange); background: var(--hb-orange-tint); }
.hb-diag .hb-option .hb-check {
  width: 22px; height: 22px;
  border: 2px solid var(--hb-grey-200);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .15s ease;
}
.hb-diag .hb-option .hb-check::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--hb-orange);
  transform: scale(0);
  transition: transform .15s ease;
}
.hb-diag .hb-option.is-selected { border-color: var(--hb-orange); background: var(--hb-orange-tint); }
.hb-diag .hb-option.is-selected .hb-check { border-color: var(--hb-orange); }
.hb-diag .hb-option.is-selected .hb-check::after { transform: scale(1); }
.hb-diag .hb-option-text { flex: 1; }

.hb-diag .hb-fields {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .hb-diag .hb-fields { grid-template-columns: 1fr 1fr; } }

.hb-diag .hb-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--hb-brown);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.hb-diag .hb-field .hb-field-required { color: var(--hb-orange); margin-left: 2px; }
.hb-diag .hb-field-input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--hb-grey-200);
  padding: 10px 0;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: var(--hb-brown);
  background: transparent;
  transition: border-color .15s ease;
}
.hb-diag .hb-field-input:focus { outline: none; border-bottom-color: var(--hb-orange); }
.hb-diag .hb-field-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23EF4B0E' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 22px;
}
.hb-diag .hb-field-error {
  color: var(--hb-orange-dark);
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
}

.hb-diag .hb-measure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.hb-diag .hb-measure-card {
  background: var(--hb-orange-tint);
  padding: 20px 12px;
  border-radius: var(--hb-radius-sm);
  text-align: center;
}
.hb-diag .hb-measure-card-ico { font-size: 26px; margin-bottom: 6px; color: var(--hb-orange); }
.hb-diag .hb-measure-card-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--hb-brown);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hb-diag .hb-measure-card input {
  width: 70px;
  padding: 10px 8px;
  border: 1.5px solid var(--hb-grey-200);
  border-radius: 8px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: 'Roboto Condensed', sans-serif;
  color: var(--hb-brown);
  background: var(--hb-white);
}
.hb-diag .hb-measure-card input:focus { outline: none; border-color: var(--hb-orange); }
.hb-diag .hb-measure-card-unit {
  display: inline-block;
  margin-left: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hb-brown);
}

.hb-diag .hb-goal-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 12px;
}
.hb-diag .hb-goal-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--hb-grey-200);
  border-radius: var(--hb-radius-sm);
  cursor: pointer;
  font-weight: 600;
  color: var(--hb-brown);
  background: var(--hb-white);
  transition: all .15s ease;
}
.hb-diag .hb-goal-item:hover { border-color: var(--hb-orange); background: var(--hb-orange-tint); }
.hb-diag .hb-goal-item.is-selected { border-color: var(--hb-orange); background: var(--hb-orange-tint); }
.hb-diag .hb-goal-ico {
  width: 38px; height: 38px;
  background: var(--hb-orange-tint);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--hb-orange);
  flex-shrink: 0;
}
.hb-diag .hb-goal-item.is-selected .hb-goal-ico { background: var(--hb-white); }

.hb-diag .hb-calc { text-align: center; padding: 40px 12px; }
.hb-diag .hb-calc-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--hb-brown);
  margin: 20px 0 8px;
}
.hb-diag .hb-calc-status {
  font-size: 15px;
  color: var(--hb-grey-500);
  min-height: 40px;
  transition: opacity .3s ease;
}
.hb-diag .hb-spinner {
  display: inline-block;
  width: 96px; height: 96px;
  border: 8px solid var(--hb-orange-tint);
  border-top-color: var(--hb-orange);
  border-radius: 50%;
  animation: hb-spin 1s linear infinite;
}
@keyframes hb-spin { to { transform: rotate(360deg); } }

.hb-diag .hb-result-hero {
  padding: 28px;
  background: linear-gradient(135deg, var(--hb-orange-tint) 0%, #FFDFCC 100%);
  border-radius: var(--hb-radius);
  margin-bottom: 20px;
  text-align: center;
}
.hb-diag .hb-result-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--hb-brown); text-transform: uppercase;
  margin: 0 0 8px; opacity: .7;
}
.hb-diag .hb-result-profile {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(38px, 6vw, 60px);
  color: var(--hb-orange);
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 1;
}
.hb-diag .hb-result-text {
  font-size: 15px;
  color: var(--hb-brown);
  max-width: 520px;
  margin: 0 auto;
}
.hb-diag .hb-result-scores {
  padding: 22px;
  background: var(--hb-white);
  border-radius: var(--hb-radius);
  border: 1px solid var(--hb-grey-200);
  margin-bottom: 20px;
}
.hb-diag .hb-score-row {
  display: grid;
  grid-template-columns: 130px 1fr 50px;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.hb-diag .hb-score-row:last-child { margin-bottom: 0; }
.hb-diag .hb-score-label {
  font-size: 13px; font-weight: 700;
  color: var(--hb-brown); text-transform: uppercase;
  letter-spacing: 1px;
}
.hb-diag .hb-score-bar {
  height: 10px;
  background: var(--hb-orange-tint);
  border-radius: 999px;
  overflow: hidden;
}
.hb-diag .hb-score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hb-orange) 0%, var(--hb-orange-dark) 100%);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
  width: 0%;
}
.hb-diag .hb-score-value {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700; font-size: 18px;
  color: var(--hb-brown); text-align: right;
}

.hb-diag .hb-result-actions {
  display: grid; gap: 12px;
  margin-top: 22px;
}
@media (min-width: 640px) { .hb-diag .hb-result-actions { grid-template-columns: 1fr 1fr; } }

.hb-diag .hb-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.hb-diag .hb-nav .hb-cta--ghost { min-width: 130px; }
.hb-diag[data-step-active="1"][data-step="1"] .hb-nav [data-prev] { visibility: hidden; }

.hb-diag .hb-privacy-note {
  text-align: center;
  font-size: 12px;
  color: var(--hb-grey-500);
  margin: 18px 0 0;
}

.hb-diag .hb-error-banner {
  padding: 12px 16px;
  background: #FFF0EA;
  border: 1px solid #FDBFA5;
  border-radius: 10px;
  color: var(--hb-orange-dark);
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}
.hb-diag .hb-error-banner.is-visible { display: block; }

@media (max-width: 480px) {
  .hb-diag { padding: 12px 12px 60px; }
  .hb-diag .hb-landing-grid { padding: 24px 18px; }
  .hb-diag .hb-cta { padding: 14px 18px; min-width: 0; font-size: 13px; letter-spacing: 1px; }
  .hb-diag .hb-nav .hb-cta--ghost { min-width: 100px; padding: 14px 12px; }
  .hb-diag .hb-step-container { padding: 22px 16px; }
  .hb-diag .hb-score-row { grid-template-columns: 100px 1fr 40px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-diag * { animation: none !important; transition: none !important; }
}
