/* ================================================================
   AIShift — Diagnostico Page Styles
   Hero, Why, Dimensions, How, Stepper, Quiz, Proof, FAQ, CTA
   ================================================================ */

/* ── HERO (enhanced) ── */
.diag-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8rem, 14vw, 12rem) clamp(1.5rem, 5vw, 5vw) clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% 80%, rgba(201, 168, 76, .06) 0%, transparent 70%);
  border-bottom: 1px solid var(--mist);
}
.diag-hero-content { position: relative; max-width: 700px; }
.diag-hero-sub {
  font-size: clamp(.95rem, 1.3vw, 1.12rem);
  color: var(--white-dim);
  font-weight: 400;
  line-height: 1.8;
  margin-top: 1.4rem;
}

/* Hero stats */
.diag-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.diag-hero-stat { text-align: center; }
.diag-hero-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1.2;
}
.diag-hero-stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: .3rem;
}
.diag-hero-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, .1);
}

/* Hero actions */
.diag-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ── WHY ASSESS ── */
.diag-why {
  padding: var(--section-pad);
}
.diag-why-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.diag-why-text {
  font-size: 1rem;
  color: var(--white-dim);
  font-weight: 400;
  line-height: 1.85;
  margin-top: 1rem;
}
.diag-why-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
}
.diag-why-card {
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .06);
  border-left: 3px solid transparent;
  border-radius: 8px;
  padding: 1.6rem 1.8rem;
  transition: all .3s var(--ease-out);
}
.diag-why-card:hover {
  border-left-color: var(--gold);
  background: rgba(201, 168, 76, .03);
}
.diag-why-card-icon {
  margin-bottom: .8rem;
}
.diag-why-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}
.diag-why-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .5rem;
}
.diag-why-card p {
  font-size: .94rem;
  color: var(--white-dim);
  font-weight: 400;
  line-height: 1.75;
}

/* ── 5 DIMENSIONS ── */
.diag-dims-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.diag-dims-desc {
  font-size: 1rem;
  color: var(--white-dim);
  font-weight: 400;
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}
.diag-dims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.diag-dim-card {
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  padding: 2rem 1.8rem;
  transition: all .3s var(--ease-out);
}
.diag-dim-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
  background: rgba(201, 168, 76, .03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}
.diag-dim-icon {
  margin-bottom: 1rem;
}
.diag-dim-icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}
.diag-dim-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .6rem;
}
.diag-dim-card p {
  font-size: .94rem;
  color: var(--white-dim);
  font-weight: 400;
  line-height: 1.75;
}

/* ── HOW IT WORKS ── */
.diag-how {
  padding: var(--section-pad);
}
.diag-how-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.diag-how-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
}
/* Timeline line connecting phases */
.diag-how-phases::before {
  content: '';
  position: absolute;
  top: 12px;
  left: calc(16.67% + 6px);
  right: calc(16.67% + 6px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-dim));
  opacity: .3;
}
.diag-how-phase {
  text-align: center;
  position: relative;
}
.diag-how-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--ink);
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}
.diag-how-num {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
}
.diag-how-phase h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .6rem;
}
.diag-how-phase p {
  font-size: .94rem;
  color: var(--white-dim);
  font-weight: 400;
  line-height: 1.75;
  max-width: 300px;
  margin: 0 auto;
}

/* ── QUIZ SECTION WRAPPER ── */
.diag-quiz-section {
  padding: var(--section-pad);
  background: var(--ink-mid);
  border-top: 1px solid var(--mist);
}

/* ── DIMENSION STEPPER ── */
.diag-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  padding: 1rem 0;
}
.diag-stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  position: relative;
}
.diag-stepper-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .15);
  background: transparent;
  transition: all .3s var(--ease-out);
}
.diag-stepper-label {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist-text);
  transition: color .3s var(--ease-out);
}
.diag-stepper-line {
  width: 2.5rem;
  height: 1px;
  background: rgba(255, 255, 255, .08);
  margin: 0 .6rem;
  margin-bottom: 1.2rem;
  transition: background .3s var(--ease-out);
}

/* Stepper states */
.diag-stepper-item.active .diag-stepper-dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 168, 76, .3);
}
.diag-stepper-item.active .diag-stepper-label {
  color: var(--gold);
}
.diag-stepper-item.completed .diag-stepper-dot {
  border-color: var(--gold);
  background: var(--gold);
}
.diag-stepper-item.completed .diag-stepper-label {
  color: var(--silver);
}
.diag-stepper-line.completed {
  background: var(--gold-dim);
}

/* ── CONTAINER ── */
.diag-container {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem) clamp(3rem, 6vw, 5rem);
}

/* ── PROGRESS BAR ── */
.diag-progress {
  position: relative;
  height: 5px;
  background: rgba(255, 255, 255, .05);
  border-radius: 3px;
  margin-bottom: 3rem;
  overflow: hidden;
}
.diag-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width .5s var(--ease-out);
}
.diag-progress-text {
  position: absolute;
  top: -1.6rem;
  right: 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--gold);
}

/* ── QUESTIONS ── */
.diag-questions { position: relative; min-height: 280px; }
.diag-question {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.diag-question.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.diag-question-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  padding: 2.5rem 2rem;
}
.diag-dimension-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  padding: .25rem .8rem;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  margin-bottom: 1rem;
}
.diag-question-number {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist-text);
  margin-bottom: .6rem;
}
.diag-question-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 2.2rem;
}

/* ── OPTIONS (LIKERT 1-5) ── */
.diag-options { display: flex; gap: .6rem; flex-wrap: wrap; }
.diag-option {
  flex: 1;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 1.1rem .5rem;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  cursor: pointer;
  color: var(--white-dim);
  transition: all .25s var(--ease-out);
}
.diag-option:hover { border-color: var(--gold-dim); background: rgba(201, 168, 76, .04); transform: scale(1.02); }
.diag-option.selected {
  border-color: var(--gold);
  background: rgba(201, 168, 76, .1);
  color: var(--gold);
  box-shadow: 0 0 18px rgba(201, 168, 76, .12);
  animation: pulseGlow 2s ease-in-out infinite;
}
.diag-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.diag-option-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.diag-option.selected .diag-option-value { color: var(--gold); }
.diag-option-label { font-size: .76rem; font-weight: 400; letter-spacing: .03em; text-align: center; line-height: 1.4; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.diag-question.shake { animation: shake .45s ease-in-out; }

/* ── NAVIGATION ── */
.diag-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.diag-btn-prev,
.diag-btn-next {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white-dim);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  padding: .7rem 1.4rem;
  cursor: pointer;
  transition: all .25s var(--ease-out);
}
.diag-btn-prev:hover,
.diag-btn-next:hover { border-color: var(--gold-dim); color: var(--gold); }
.diag-btn-prev:disabled { opacity: .3; cursor: not-allowed; }
.diag-btn-prev:disabled:hover { border-color: rgba(255, 255, 255, .1); color: var(--white-dim); }
.diag-btn-next { margin-left: auto; border-color: var(--gold); color: var(--gold); }
.diag-btn-next:hover { background: rgba(201, 168, 76, .1); }

/* ── RESULTS ── */
.diag-results { animation: fadeUp .6s var(--ease-out) both; }
.diag-results-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: .8rem;
}

/* ── SCORE DISPLAY ── */
.diag-score-section { text-align: center; padding: 2.5rem 0; }
.diag-score-main {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .5rem;
  text-shadow: 0 0 30px rgba(201, 168, 76, .2);
}
.diag-level {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: .35rem 1.2rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.diag-level-desc {
  font-size: .9rem;
  color: var(--white-dim);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto;
}

/* ── RADAR CHART ── */
.diag-radar { display: flex; justify-content: center; padding: 2rem 0 3rem; }
.diag-radar canvas { max-width: 100%; height: auto; }

/* ── DIMENSION BREAKDOWN ── */
.diag-dimensions { display: grid; gap: 1rem; margin: 2rem 0 3rem; }
.diag-dimension-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
}
.diag-dimension-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.diag-dimension-name { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.diag-dimension-score { font-family: var(--font-mono); font-size: .8rem; color: var(--white-dim); letter-spacing: .06em; }
.diag-dimension-bar { height: 5px; background: rgba(255, 255, 255, .06); border-radius: 3px; overflow: hidden; margin-bottom: .8rem; }
.diag-dimension-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 3px;
  transition: width 0s;
  position: relative;
  overflow: hidden;
}
.diag-dimension-bar-fill.animated { transition: width 1s var(--ease-out); }
.diag-dimension-bar-fill.animated::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: shimmer 1.5s .8s var(--ease-out) forwards;
}
.diag-dimension-desc { font-size: .92rem; color: var(--white-dim); font-weight: 400; line-height: 1.75; }

/* ── LEAD FORM ── */
.diag-lead-form {
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
}
.diag-lead-form h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; color: var(--white); margin-bottom: .6rem; }
.diag-lead-form p { font-size: .94rem; color: var(--white-dim); font-weight: 400; line-height: 1.75; margin-bottom: 1.8rem; }
.diag-form-group { margin-bottom: 1.2rem; }
.diag-form-group label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); margin-bottom: .45rem; }
.diag-form-group input {
  width: 100%;
  padding: .8rem 1rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .88rem;
  outline: none;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.diag-form-group input::placeholder { color: var(--mist-text); }
.diag-form-group input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 76, .1); }
.diag-submit-btn { width: 100%; margin-top: .8rem; text-align: center; }

/* ── CTA SECTION (in results) ── */
.diag-cta-section { text-align: center; padding: 3rem 0 1rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.diag-cta-section h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 300; color: var(--white); margin-bottom: .8rem; }
.diag-cta-section p { font-size: .94rem; color: var(--white-dim); font-weight: 400; line-height: 1.75; max-width: 500px; margin: 0 auto 1.8rem; }

/* ── SOCIAL PROOF BAR ── */
.diag-proof {
  padding: 2rem clamp(1.5rem, 5vw, 5vw);
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  background: rgba(201, 168, 76, .02);
}
.diag-proof-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}
.diag-proof-label {
  font-size: .85rem;
  color: var(--white-dim);
  font-weight: 400;
  letter-spacing: .04em;
}
.diag-proof-badge {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
}
.diag-proof-sep {
  color: var(--mist-text);
  font-size: .7rem;
}
.diag-proof-link {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color .25s;
}
.diag-proof-link:hover { color: var(--gold-light); }

/* ── FAQ ACCORDION ── */
.diag-faq {
  padding: var(--section-pad);
}
.diag-faq-inner {
  max-width: 740px;
  margin: 0 auto;
}
.diag-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.diag-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.diag-faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.diag-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--white);
  list-style: none;
  transition: color .25s;
}
.diag-faq-item summary::-webkit-details-marker { display: none; }
.diag-faq-item summary::marker { display: none; content: ''; }
.diag-faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform .3s var(--ease-out);
  flex-shrink: 0;
  margin-left: 1rem;
}
.diag-faq-item[open] summary::after {
  transform: rotate(45deg);
}
.diag-faq-item summary:hover { color: var(--gold); }
.diag-faq-answer {
  padding: 0 0 1.4rem;
}
.diag-faq-answer p {
  font-size: .95rem;
  color: var(--white-dim);
  font-weight: 400;
  line-height: 1.8;
}

/* ── NAV-CTA ACTIVE ── */
.nav-cta.active { background: var(--gold); color: var(--ink); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .diag-why-grid { grid-template-columns: 1fr; gap: 2rem; }
  .diag-how-phases { grid-template-columns: 1fr; gap: 2rem; }
  .diag-how-phases::before { display: none; }
  .diag-how-phase { text-align: left; }
  .diag-how-phase p { max-width: none; margin: 0; }
  .diag-how-dot { margin: 0 0 1rem; }
  .diag-stepper { display: none; }
  .diag-dims-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .diag-hero { padding-top: 7rem; }
  .diag-hero-stats { flex-direction: column; gap: 1rem; }
  .diag-hero-stat-sep { width: 36px; height: 1px; }
  .diag-question-card { padding: 1.8rem 1.2rem; }
  .diag-options { flex-direction: column; }
  .diag-option {
    flex-direction: row;
    justify-content: flex-start;
    gap: .8rem;
    padding: .9rem 1.2rem;
    min-width: unset;
  }
  .diag-option-value { font-size: 1.2rem; min-width: 1.8rem; text-align: center; }
  .diag-option-label { text-align: left; }
  .diag-score-main { font-size: 3.5rem; }
  .diag-dimension-card { padding: 1.2rem; }
  .diag-lead-form { padding: 1.6rem 1.2rem; }
  .diag-radar canvas { width: 300px !important; height: 300px !important; }
  .diag-dims-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .diag-container { padding-left: 1rem; padding-right: 1rem; }
  .diag-radar canvas { width: 260px !important; height: 260px !important; }
}

/* ── PRINT ── */
@media print {
  .diag-hero { min-height: auto; padding: 2rem 0; }
  .diag-nav, .diag-lead-form, .diag-stepper { display: none; }
  .diag-option { border: 1px solid #ccc; }
  .diag-option.selected { border: 2px solid #333; background: #eee; }
}
