/* ===== KIM Brand Design System ===== */
:root {
  --kim-black: #000000;
  --kim-blue: #0E53BB;
  --kim-blue-dark: #093d8a;
  --kim-lightblue: #7BC9E0;
  --kim-white: #FFFFFF;
  --kim-bg: #FFFFFF;
  --kim-gray: #6B7280;
  --kim-gray-light: #E5E7EB;
  --kim-gray-lighter: #F3F4F6;
  --kim-red: #E74C3C;
  --kim-amber: #F39C12;
  --kim-success: #10B981;

  /* Surfaces */
  --surface-1: #FFFFFF;
  --surface-2: #F7F9FC;
  --surface-3: #EEF4FF;
  --surface-4: #F0FAFD;

  /* Blue alpha */
  --kim-blue-05: rgba(14, 83, 187, 0.05);
  --kim-blue-08: rgba(14, 83, 187, 0.08);
  --kim-blue-12: rgba(14, 83, 187, 0.12);
  --kim-blue-20: rgba(14, 83, 187, 0.20);

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.09), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
  --shadow-blue: 0 4px 16px rgba(14, 83, 187, 0.25);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 50px;

  /* Fluid Typography */
  --text-xs:   clamp(0.7rem,  0.68rem + 0.1vw,  0.75rem);
  --text-sm:   clamp(0.82rem, 0.79rem + 0.15vw, 0.875rem);
  --text-base: clamp(0.95rem, 0.9rem  + 0.25vw, 1rem);
  --text-lg:   clamp(1.05rem, 1rem    + 0.3vw,  1.15rem);
  --text-xl:   clamp(1.15rem, 1.05rem + 0.5vw,  1.35rem);
  --text-2xl:  clamp(1.5rem,  1.3rem  + 1vw,    2rem);
  --text-3xl:  clamp(1.75rem, 1.4rem  + 1.5vw,  2.5rem);
  --text-4xl:  clamp(2.25rem, 1.8rem  + 2vw,    3.2rem);

  --font-heading: 'Campton', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Calibri', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 800px;
  --transition: 0.3s ease;
}

/* ===== Font Face ===== */
@font-face {
  font-family: 'Campton';
  src: url('/css/fonts/Campton-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--kim-black);
  background: var(--kim-bg);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--kim-blue);
  line-height: 1.2;
}

a {
  color: var(--kim-blue);
  text-decoration: underline;
}

a:hover {
  color: var(--kim-lightblue);
}

/* ===== Views ===== */
.view {
  display: none;
  min-height: 100vh;
}

.view--active {
  display: block;
  animation: viewFadeIn 0.5s ease;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
  min-height: 48px;
}

.btn--primary {
  background: var(--kim-blue);
  color: var(--kim-white);
  border-color: var(--kim-blue);
}

.btn--primary:hover {
  background: var(--kim-blue-dark);
  border-color: var(--kim-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn--secondary {
  background: transparent;
  color: var(--kim-blue);
  border-color: var(--kim-blue);
}

.btn--secondary:hover {
  background: var(--kim-blue-05);
  transform: translateY(-1px);
}

.btn--large {
  font-size: var(--text-lg);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
}

/* =========================================
   WELCOME VIEW
   ========================================= */
.welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #EEF4FF 40%, #F0FAFD 70%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative background circles */
.welcome::before,
.welcome::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.welcome::before {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(14, 83, 187, 0.04) 0%, transparent 70%);
}
.welcome::after {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(123, 201, 224, 0.06) 0%, transparent 70%);
}

.welcome__content {
  max-width: var(--max-width);
  text-align: center;
  position: relative;
  z-index: 1;
}

.welcome__logo {
  width: 140px;
  height: auto;
  margin-bottom: 2.5rem;
  mix-blend-mode: multiply;
}

.welcome__title {
  font-size: var(--text-4xl);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.welcome__subtitle {
  font-size: var(--text-xl);
  color: var(--kim-gray);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.welcome__text {
  font-size: var(--text-lg);
  color: #374151;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.welcome__features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.welcome__feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-base);
  color: var(--kim-gray);
  font-weight: 500;
}

.welcome__feature-icon {
  font-size: 1.2rem;
}

.welcome__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.welcome__cta-group .btn--large {
  animation: ctaPulse 3s ease-in-out infinite;
}

.welcome__cta-group .btn--large:hover {
  animation: none;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(14, 83, 187, 0.25); }
  50% { box-shadow: 0 8px 32px rgba(14, 83, 187, 0.4); }
}

.welcome__note {
  font-size: var(--text-sm);
  color: var(--kim-gray);
}

/* =========================================
   ASSESSMENT VIEW
   ========================================= */
.assessment {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
}

.assessment__header {
  background: var(--kim-white);
  border-bottom: 1px solid var(--kim-gray-light);
  padding: 1rem 1.5rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.assessment__logo {
  width: 48px;
  height: auto;
  mix-blend-mode: multiply;
}

.progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.progress-segments {
  display: flex;
  gap: 4px;
}

.progress-segment {
  flex: 1;
  height: 6px;
  background: var(--kim-gray-light);
  border-radius: 3px;
  transition: background 0.4s ease;
}

.progress-segment--active {
  background: linear-gradient(90deg, var(--kim-lightblue), #a8dcef);
}

.progress-segment--done {
  background: linear-gradient(90deg, var(--kim-blue), #1a6cd4);
}

.progress-bar {
  height: 4px;
  background: var(--kim-gray-light);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--kim-blue), var(--kim-lightblue));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  position: relative;
}

.progress-bar__fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.progress-text {
  font-size: var(--text-xs);
  color: var(--kim-gray);
  text-align: right;
  font-weight: 600;
}

.assessment__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.dimension-info {
  text-align: center;
  margin-bottom: 2rem;
}

.dimension-info__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--kim-gray);
  display: inline-block;
  margin-bottom: 0.5rem;
  background: var(--kim-blue-05);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.dimension-info__name {
  font-size: var(--text-2xl);
}

.question-area {
  width: 100%;
}

.fade-in {
  animation: questionSlideIn 0.35s ease;
}

.slide-out {
  animation: questionSlideOut 0.2s ease forwards;
}

@keyframes questionSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes questionSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-30px); }
}

.question-counter {
  font-size: var(--text-xs);
  color: var(--kim-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.question-title {
  font-size: var(--text-sm);
  margin: 0.5rem 0 0.25rem;
  color: var(--kim-gray);
  font-family: var(--font-body);
  font-weight: 600;
}

.question-text {
  font-size: var(--text-xl);
  color: var(--kim-black);
  margin-bottom: 1.75rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ===== Answer Cards ===== */
.answer-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.answer-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.125rem 1.25rem 1.125rem 1.125rem;
  background: var(--kim-white);
  border: 2px solid var(--kim-gray-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color 0.2s ease, background 0.2s ease,
              box-shadow 0.2s ease, transform 0.15s ease;
  width: 100%;
  overflow: hidden;
  min-height: 56px;
}

/* Left accent bar */
.answer-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--kim-lightblue);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.answer-card:hover::before {
  transform: scaleY(1);
}

.answer-card:hover {
  border-color: var(--kim-lightblue);
  background: rgba(123, 201, 224, 0.04);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.answer-card--selected {
  border-color: var(--kim-blue);
  background: var(--kim-blue-05);
  box-shadow: 0 0 0 1px var(--kim-blue), 0 4px 16px rgba(14, 83, 187, 0.12);
  transform: translateX(4px);
  animation: cardSelect 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.answer-card--selected::before {
  background: var(--kim-blue);
  transform: scaleY(1);
}

@keyframes cardSelect {
  0%   { transform: translateX(4px) scale(1); }
  40%  { transform: translateX(4px) scale(1.012); }
  100% { transform: translateX(4px) scale(1); }
}

.answer-card__label {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kim-gray-lighter);
  border: 1.5px solid var(--kim-gray-light);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--kim-blue);
  transition: all 0.2s ease;
  position: relative;
}

.answer-card--selected .answer-card__label {
  background: var(--kim-blue);
  border-color: var(--kim-blue);
  color: transparent;
}

/* Checkmark on selected */
.answer-card--selected .answer-card__label::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  width: 7px;
  height: 13px;
  border: solid var(--kim-white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.answer-card__text {
  flex: 1;
  padding-top: 0.3rem;
  line-height: 1.55;
}

.assessment__nav {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

/* =========================================
   CONTACT VIEW
   ========================================= */
.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, var(--surface-3) 0%, var(--surface-2) 100%);
}

.contact__content {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.contact__logo {
  width: 80px;
  height: auto;
  margin-bottom: 1.5rem;
  mix-blend-mode: multiply;
}

.contact__teaser {
  margin-bottom: 2rem;
}

.teaser-blur {
  background: linear-gradient(135deg, rgba(14, 83, 187, 0.06), rgba(123, 201, 224, 0.1));
  border: 2px dashed rgba(14, 83, 187, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.teaser-blur__icon {
  display: block;
  margin: 0 auto 0.5rem;
  position: relative;
  z-index: 1;
}

.teaser-blur__text {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--kim-blue);
  font-size: var(--text-base);
  position: relative;
  z-index: 1;
}

.contact__title {
  font-size: var(--text-2xl);
  margin-bottom: 0.75rem;
}

.contact__text {
  color: var(--kim-gray);
  margin-bottom: 2rem;
  font-size: var(--text-base);
}

.form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 0.375rem;
  color: var(--kim-black);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--kim-gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--kim-white);
  min-height: 48px;
}

.form-input:focus {
  outline: none;
  border-color: var(--kim-blue);
  box-shadow: 0 0 0 3px rgba(14, 83, 187, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--kim-red);
}

.form-group--checkbox {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--kim-gray);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--kim-gray-light);
  border-radius: 5px;
  margin-top: 1px;
  transition: all var(--transition);
  position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--kim-blue);
  border-color: var(--kim-blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--kim-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-group--error .form-input {
  border-color: var(--kim-red);
}

.form-group--error .form-label {
  color: var(--kim-red);
}

.form-group--error .checkbox-custom {
  border-color: var(--kim-red);
}

.form-group--error .checkbox-label span:last-child {
  color: var(--kim-red);
}

.form .btn {
  width: 100%;
}

/* =========================================
   RESULTS VIEW
   ========================================= */
.results {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.results__header {
  text-align: center;
  margin-bottom: 3rem;
}

.results__logo {
  width: 80px;
  height: auto;
  margin-bottom: 1rem;
  mix-blend-mode: multiply;
}

.results__title {
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
}

/* Score Card */
.results__summary {
  margin-bottom: 3rem;
}

.score-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  background: var(--kim-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.score-card::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(123, 201, 224, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.score-card__badge {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--kim-white);
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative;
}

.score-card__badge::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 3px solid currentColor;
  opacity: 0.25;
  animation: ringPulse 2.5s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.08); opacity: 0.1; }
}

.score-card__score {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.score-card__max {
  font-size: 0.85rem;
  opacity: 0.75;
}

.score-card__info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.score-card__label {
  font-size: var(--text-2xl);
  margin-bottom: 0.25rem;
}

.score-card__subtitle {
  color: var(--kim-gray);
  font-size: var(--text-base);
  margin-bottom: 0.75rem;
}

.score-card__description {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: #374151;
}

/* Explainer Section */
.results__explainer {
  margin-bottom: 2.5rem;
}

.explainer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.explainer-card {
  background: var(--kim-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.explainer-card__title {
  font-size: var(--text-xl);
  margin-bottom: 0.375rem;
}

.explainer-card__intro {
  font-size: var(--text-sm);
  color: var(--kim-gray);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.explainer-dims {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.explainer-dim {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.explainer-dim__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kim-blue-08);
  color: var(--kim-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
}

.explainer-dim div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.explainer-dim strong {
  font-size: var(--text-sm);
  color: var(--kim-black);
}

.explainer-dim span {
  font-size: var(--text-xs);
  color: var(--kim-gray);
  line-height: 1.4;
}

.explainer-levels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.explainer-level {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.explainer-level__bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  transition: width 1s ease;
}

.explainer-level__info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.explainer-level__info strong {
  font-size: var(--text-sm);
  color: var(--kim-black);
}

.explainer-level__range {
  font-size: var(--text-xs);
  color: var(--kim-gray);
  font-weight: 400;
  margin-left: 0.25rem;
}

.explainer-level__info > span:last-child {
  font-size: var(--text-xs);
  color: var(--kim-gray);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .explainer-grid {
    grid-template-columns: 1fr;
  }
}

/* Section Titles */
.section-title {
  font-size: var(--text-2xl);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--kim-gray);
  margin-bottom: 1.5rem;
  font-size: var(--text-base);
}

/* Radar Chart */
.results__chart {
  background: var(--kim-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.radar-container {
  max-width: 700px;
  margin: 1rem auto 0;
}

/* Dimension Details */
.results__details {
  margin-bottom: 2.5rem;
}

.dimension-detail {
  background: var(--kim-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dimension-detail:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.dimension-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.dimension-detail__title {
  font-size: var(--text-lg);
}

.dimension-detail__badge {
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-pill);
  color: var(--kim-white);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.dimension-bar {
  height: 10px;
  background: var(--kim-gray-lighter);
  border-radius: 5px;
  position: relative;
  overflow: visible;
  margin-bottom: 0.375rem;
}

.dimension-bar__fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.dimension-bar__markers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.dimension-bar__marker {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 1px;
}

.dimension-bar__labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--kim-gray);
  margin-bottom: 0.75rem;
}

.dimension-detail__text {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: #374151;
}

/* Recommendations */
.results__recommendations {
  margin-bottom: 3rem;
}

.recommendation {
  background: var(--kim-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14, 83, 187, 0.06);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.recommendation:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.recommendation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--kim-blue), var(--kim-lightblue));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.recommendation__priority {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--kim-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  background: var(--kim-blue-08);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.recommendation__title {
  font-size: var(--text-lg);
  margin-bottom: 0.75rem;
}

.recommendation__list {
  list-style: none;
  padding: 0;
}

.recommendation__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: #374151;
}

.recommendation__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--kim-blue), var(--kim-lightblue));
  border-radius: 50%;
}

/* CTA Section — gradient */
.results__cta {
  text-align: center;
  background: linear-gradient(135deg, #0E53BB 0%, #1565d8 50%, #7BC9E0 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.results__cta::before,
.results__cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.results__cta::before {
  width: 300px;
  height: 300px;
  right: -80px;
  top: -80px;
}
.results__cta::after {
  width: 200px;
  height: 200px;
  left: -50px;
  bottom: -50px;
}

.cta__title {
  color: var(--kim-white);
  font-size: var(--text-2xl);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.cta__text {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  font-size: var(--text-base);
}

.results__cta .btn {
  margin: 0.5rem;
  position: relative;
  z-index: 1;
}

.results__cta .btn--primary {
  background: var(--kim-white);
  color: var(--kim-blue);
  border-color: var(--kim-white);
}

.results__cta .btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.results__cta .btn--secondary {
  color: var(--kim-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.results__cta .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--kim-white);
  transform: translateY(-1px);
}

/* Footer */
.results__footer {
  text-align: center;
  padding: 2rem 0 1rem;
  font-size: var(--text-xs);
  color: var(--kim-gray);
}

.results__footer a {
  color: var(--kim-gray);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .welcome__logo {
    width: 100px;
  }

  .score-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 2rem 1.5rem;
  }

  .score-card__badge {
    width: 100px;
    height: 100px;
  }

  .score-card__score {
    font-size: 2rem;
  }

  .dimension-detail__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .results__cta {
    padding: 2rem 1.25rem;
  }

  .results__cta .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  .assessment__header {
    gap: 1rem;
    padding: 0.75rem 1rem;
  }

  .assessment__logo {
    width: 36px;
  }

  .answer-card {
    padding: 0.875rem 1rem;
  }
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 500ms; }

/* Scale-up reveal variant */
.reveal--scale {
  opacity: 0;
  transform: scale(0.92) translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal--scale.reveal--visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Dimension bars animate from 0 width */
.dimension-bar__fill {
  width: 0% !important;
  transition: none;
}
.dimension-bar__fill--animate {
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Score counter animation */
.score-card__badge {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-card__badge--pop {
  animation: scorePop 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scorePop {
  0%   { transform: scale(0.6); opacity: 0; }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* Enhanced card hover depth */
.explainer-card,
.dimension-detail,
.recommendation {
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glassmorphism for results chart */
.results__chart {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Welcome entrance animations */
.welcome__content {
  animation: welcomeEntrance 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes welcomeEntrance {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.welcome__logo {
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Feature icons subtle animation */
.welcome__feature-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.welcome__feature:hover .welcome__feature-icon {
  transform: scale(1.2);
}

/* Enhanced button press effect */
.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

/* Contact form input focus glow */
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(14, 83, 187, 0.1),
              0 0 20px rgba(14, 83, 187, 0.06);
}

/* Teaser blur shimmer */
.teaser-blur::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: teaserShimmer 3s ease-in-out infinite;
}

@keyframes teaserShimmer {
  0%   { left: -50%; }
  100% { left: 150%; }
}

/* Smooth view transitions */
.view--active {
  animation: viewEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes viewEnter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA gradient shift animation */
.results__cta {
  background-size: 200% 200%;
  animation: ctaGradient 8s ease infinite;
}

@keyframes ctaGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================================
   PDF CAPTURE MODE
   Neutralizes all animations/effects for clean screenshot
   ========================================= */
.pdf-capture .reveal,
.pdf-capture .reveal--scale {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.pdf-capture .results__chart {
  backdrop-filter: none !important;
  background: #FFFFFF !important;
}

.pdf-capture .dimension-bar__fill {
  transition: none !important;
}

.pdf-capture .score-card__badge {
  animation: none !important;
}

.pdf-capture .score-card__badge::before {
  animation: none !important;
}

.pdf-capture .results__cta {
  animation: none !important;
  background-size: 100% 100% !important;
}

.pdf-capture .welcome__logo {
  animation: none !important;
}

/* Compact styles for PDF — fit overview and details on single pages */
.pdf-capture .results__header {
  margin-bottom: 0.5rem !important;
}

.pdf-capture .results__logo {
  width: 60px !important;
  margin-bottom: 0.5rem !important;
}

.pdf-capture .results__summary {
  margin-bottom: 1rem !important;
}

.pdf-capture .score-card {
  padding: 1rem 1.5rem !important;
  gap: 1.25rem !important;
}

.pdf-capture .score-card__badge {
  width: 90px !important;
  height: 90px !important;
}

.pdf-capture .score-card__score {
  font-size: 2rem !important;
}

.pdf-capture .score-card__label {
  font-size: 1.25rem !important;
}

.pdf-capture .score-card__description {
  font-size: 0.8rem !important;
  line-height: 1.5 !important;
}

.pdf-capture .results__explainer {
  margin-bottom: 0 !important;
}

.pdf-capture .explainer-card {
  padding: 1.25rem !important;
}

.pdf-capture .explainer-card__title {
  font-size: 1rem !important;
  margin-bottom: 0.25rem !important;
}

.pdf-capture .explainer-card__intro {
  font-size: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

.pdf-capture .explainer-dims {
  gap: 0.4rem !important;
}

.pdf-capture .explainer-dim__num {
  width: 22px !important;
  height: 22px !important;
  font-size: 0.7rem !important;
}

.pdf-capture .explainer-dim strong,
.pdf-capture .explainer-dim span {
  font-size: 0.75rem !important;
}

.pdf-capture .explainer-level__bar {
  height: 6px !important;
}

.pdf-capture .explainer-level strong,
.pdf-capture .explainer-level span {
  font-size: 0.75rem !important;
}

/* Compact dimension details for single page */
.pdf-capture .dimension-detail {
  padding: 0.75rem 1rem !important;
  margin-bottom: 0.5rem !important;
}

.pdf-capture .dimension-detail__header {
  margin-bottom: 0.4rem !important;
  gap: 0.5rem !important;
}

.pdf-capture .dimension-detail__title {
  font-size: 0.95rem !important;
}

.pdf-capture .dimension-detail__badge {
  padding: 0.2rem 0.6rem !important;
  font-size: 0.65rem !important;
}

.pdf-capture .dimension-bar {
  height: 8px !important;
  margin-bottom: 0.15rem !important;
}

.pdf-capture .dimension-bar__labels {
  font-size: 0.6rem !important;
  margin-bottom: 0.3rem !important;
}

.pdf-capture .dimension-detail__text {
  font-size: 0.7rem !important;
  line-height: 1.4 !important;
}

.pdf-capture .section-title {
  font-size: 1.15rem !important;
  margin-bottom: 0.75rem !important;
}

.pdf-capture .results__details {
  margin-bottom: 0 !important;
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .dimension-bar__fill {
    width: unset !important;
    transition: none !important;
  }
}
