:root {
  --accent: #2563eb;
  --accent-strong: #1f4fd6;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --border-subtle: rgba(203, 213, 225, 0.65);
  --text-muted: rgba(71, 85, 105, 0.76);
  --surface: #ffffff;
  --surface-muted: rgba(248, 250, 252, 0.7);
}

.iq-generator {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: rgba(30, 41, 59, 0.85);
}

.generator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1rem, 4vw, 2rem) clamp(1.6rem, 6vw, 3.5rem);
}

.brand-link {
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(30, 41, 59, 0.9);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.generator-nav {
  display: inline-flex;
  gap: 1.2rem;
  font-size: 0.92rem;
}

.generator-nav a {
  color: rgba(51, 65, 85, 0.7);
  text-decoration: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.generator-main {
  flex: 1;
  display: grid;
  gap: clamp(2rem, 6vw, 3rem);
  padding: 0 clamp(1.6rem, 6vw, 3.5rem) clamp(2.6rem, 6vw, 3.8rem);
}

.generator-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.8rem, 6vw, 3rem);
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  max-width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.92);
  letter-spacing: -0.02em;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(51, 65, 85, 0.75);
  max-width: 92%;
  margin: 0;
  font-weight: 400;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero-form-card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  padding: clamp(1.5rem, 4.6vw, 2.3rem);
  border: 1px solid var(--border-subtle);
}

.form-stack {
  display: grid;
  gap: 1.3rem;
}

.form-header {
  display: grid;
  gap: 0.4rem;
}

.form-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #0f172a;
}

.form-header p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(71, 85, 105, 0.75);
}

.input-field {
  display: grid;
  gap: 0.35rem;
}

.floating-select {
  display: block;
}

.floating-select .select-shell {
  position: relative;
}

.floating-select .select-shell::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(100, 116, 139, 0.6);
  pointer-events: none;
  transition: border-top-color 0.18s ease;
  z-index: 1;
}

.floating-select:focus-within .select-shell::after {
  border-top-color: var(--accent);
}

.floating-select select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 1.05rem 2.5rem 0.6rem 1rem;
  font: inherit;
  background: var(--surface);
  color: rgba(15, 23, 42, 0.85);
  appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.floating-select select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.floating-select span {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.88rem;
  color: rgba(100, 116, 139, 0.7);
  pointer-events: none;
  transition: transform 0.18s ease, top 0.18s ease, font-size 0.18s ease, color 0.18s ease;
  background: var(--surface);
  padding: 0 0.3rem;
  line-height: 1;
  border-radius: 10px;
}

.floating-select select.has-value + span,
.floating-select select:focus + span {
  top: 0.35rem;
  transform: translateY(0);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.field-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.78);
}

.field-hint {
  font-size: 0.78rem;
  color: rgba(71, 85, 105, 0.7);
}

.input-field input[type="text"] {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 0.78rem 0.95rem;
  font: inherit;
  background: var(--surface);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-field input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.select-shell {
  position: relative;
}

.select-shell::after {
  content: "";
  position: absolute;
  inset: 50% 1rem auto auto;
  width: 0.65rem;
  height: 0.65rem;
  transform: translateY(-50%) rotate(45deg);
  border-right: 2px solid rgba(15, 23, 42, 0.35);
  border-bottom: 2px solid rgba(15, 23, 42, 0.35);
  pointer-events: none;
}

.upload-stack {
  display: grid;
  gap: 0.45rem;
}

.upload-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border: 1px dashed var(--border-subtle);
  background: var(--surface);
  cursor: pointer;
  width: fit-content;
}

.upload-trigger input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-text {
  font-weight: 600;
  color: var(--accent);
}

.upload-trigger small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.upload-file {
  font-size: 0.82rem;
  color: rgba(37, 99, 235, 0.85);
}

.resume-info {
  display: grid;
  gap: 0.45rem;
}

.resume-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(248, 250, 252, 0.5);
  transition: all 0.15s ease;
}

.resume-status:hover {
  border-color: rgba(57, 100, 255, 0.25);
  background: rgba(57, 100, 255, 0.04);
}

.resume-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(57, 100, 255, 0.1);
  flex-shrink: 0;
}

.resume-icon-wrapper svg {
  flex-shrink: 0;
}

.resume-status-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 0.75rem;
  min-width: 0;
}

.resume-status-label {
  font-size: 0.8125rem;
  color: rgba(15, 23, 42, 0.75);
  font-weight: 400;
  line-height: 1.4;
}

.change-resume-link {
  color: #3964ff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.change-resume-link:hover {
  color: #1b3fcf;
  text-decoration: underline;
}

.loading-status {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(57, 100, 255, 0.05);
  border: 1px solid rgba(57, 100, 255, 0.15);
  border-radius: 12px;
  font-size: 0.875rem;
  color: rgba(15, 23, 42, 0.8);
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(57, 100, 255, 0.2);
  border-top-color: #3964ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  flex: 1;
}

.primary-btn,
.secondary-btn {
  border-radius: 14px;
  padding: 0.82rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), #4f83ff);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  box-shadow: none;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--accent-strong), #3e6de0);
}

.secondary-btn {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: #1f2937;
}

.secondary-btn:hover {
  background: rgba(248, 250, 252, 0.9);
}

.form-footer {
  font-size: 0.8rem;
  color: rgba(71, 85, 105, 0.7);
}

.form-intro {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-intro h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.9);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.01em;
}

.form-intro p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(71, 85, 105, 0.75);
  margin: 0;
}

.features-preview {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 24px;
}

.features-preview-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.features-preview-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: rgba(15, 23, 42, 0.92);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

.features-preview-header p {
  font-size: 1.125rem;
  color: rgba(71, 85, 105, 0.75);
  margin: 0;
}

.features-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.preview-feature {
  background: var(--surface);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(203, 213, 225, 0.5);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.preview-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  padding: 12px;
  transition: all 0.3s ease;
}

.preview-feature:hover .preview-feature-icon {
  background: rgba(37, 99, 235, 0.1);
  transform: scale(1.05);
}

.preview-feature h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.02em;
}

.preview-feature p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(71, 85, 105, 0.8);
  margin: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .features-preview-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .preview-feature {
    padding: 1.5rem;
  }
}

/* Question Generator Details Section */
.question-generator-details {
  padding: clamp(3rem, 6vw, 5rem) 0;
  margin-top: 2rem;
}

.generator-details-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.generator-details-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: rgba(15, 23, 42, 0.92);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

.generator-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(71, 85, 105, 0.75);
  margin: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.generator-details-content {
  max-width: 1200px;
  margin: 0 auto;
}

.question-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.question-type-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(203, 213, 225, 0.5);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.question-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.question-type-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.question-type-card:hover .question-type-icon {
  background: rgba(37, 99, 235, 0.1);
  transform: scale(1.05);
}

.question-type-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.02em;
}

.question-type-card > p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(71, 85, 105, 0.8);
  margin: 0;
  font-weight: 500;
}

.question-type-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.question-type-list li {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(71, 85, 105, 0.75);
  padding-left: 1.5rem;
  position: relative;
}

.question-type-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1rem;
}

.generator-benefits {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-item {
  padding: 1.5rem;
  background: rgba(248, 250, 252, 0.5);
  border-radius: 12px;
}

.benefit-item h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.9);
  margin: 0 0 0.5rem 0;
}

.benefit-item p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(71, 85, 105, 0.8);
  margin: 0;
}

@media (max-width: 768px) {
  .question-types-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .question-type-card {
    padding: 1.5rem;
  }

  .benefit-item {
    padding: 1.25rem;
  }
}

.generator-results {
  display: grid;
  gap: 1.2rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

.results-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(71, 85, 105, 0.65);
}

.results-meta {
  margin-top: 0.25rem;
  color: rgba(71, 85, 105, 0.7);
  font-size: 0.85rem;
}

.results-actions {
  display: inline-flex;
  gap: 0.55rem;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.results-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: rgba(15, 23, 42, 0.95);
  letter-spacing: -0.01em;
}

.results-summary {
  background: rgba(248, 250, 252, 0.92);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  color: rgba(51, 65, 85, 0.78);
  line-height: 1.5;
  display: grid;
  gap: 0.55rem;
  border: 1px solid rgba(203, 213, 225, 0.4);
}

.summary-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: rgba(148, 163, 184, 0.12);
  border: none;
  color: rgba(71, 85, 105, 0.65);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.summary-text {
  margin: 0;
  color: rgba(30, 41, 59, 0.72);
  line-height: 1.5;
  font-size: 0.9rem;
}

.results-groups {
  display: grid;
  gap: 1rem;
}

.group-accordion {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.2rem;
  cursor: pointer;
  list-style: none;
  gap: 0.75rem;
}

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

.group-summary-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.group-title {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: rgba(71, 85, 105, 0.65);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.group-count {
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 600;
  margin-left: 0.5rem;
}

.group-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(100, 116, 139, 0.65);
  transition: transform 0.18s ease;
}

.group-accordion[open] .group-chevron {
  transform: rotate(180deg);
}

.group-items {
  margin: 0;
  padding: 0 0 1.1rem;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.question-item {
  margin: 0;
}

.question-card {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.6rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.question-card:hover {
  border-color: rgba(108, 99, 255, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.question-card.is-open {
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.question-head {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  justify-content: space-between;
}

.question-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  color: rgba(71, 85, 105, 0.65);
  font-weight: 500;
  font-size: 0.65rem;
}

.question-content {
  flex: 1;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.question-prompt {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.92);
}

.question-actions {
  display: inline-flex;
  align-items: flex-start;
  margin-left: auto;
}

.answer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.answer-toggle:hover,
.question-card.is-open .answer-toggle {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.25);
  color: #15803d;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.16);
}

.answer-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-toggle svg {
  display: block;
}

.answer-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(21, 128, 61, 0.7);
  transition: transform 0.2s ease;
}

.question-card.is-open .answer-toggle-icon {
  transform: rotate(180deg);
  color: #15803d;
}

.answer-block {
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-color: transparent;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, padding 0.2s ease;
}

.question-card.is-open .answer-block {
  max-height: 999px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  padding: 0.85rem 1rem;
  border-color: rgba(148, 163, 184, 0.2);
  margin-top: 0.5rem;
}

.answer-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(51, 65, 85, 0.88);
}

.answer-text p {
  margin: 0 0 1rem 0;
}

.answer-text p:last-child {
  margin-bottom: 0;
}

.answer-text ul {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.answer-text ul:first-child {
  margin-top: 0;
}

.answer-text ul:last-child {
  margin-bottom: 0;
}

.answer-text li {
  margin: 0.5rem 0;
  line-height: 1.6;
  color: rgba(51, 65, 85, 0.85);
}

.answer-text li:first-child {
  margin-top: 0;
}

.answer-text li:last-child {
  margin-bottom: 0;
}

.group-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: grid;
}

.group-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1.1rem;
  background: rgba(37, 99, 235, 0.05);
}

.group-card .group-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(29, 78, 216, 0.9);
}

.group-card .group-count {
  font-size: 0.85rem;
  color: rgba(71, 85, 105, 0.8);
}

.group-card ol {
  margin: 0;
  padding: 1rem 1.3rem;
  list-style: decimal;
  display: grid;
  gap: 0.75rem;
  color: rgba(30, 41, 59, 0.88);
}

.group-card li {
  line-height: 1.5;
}

.group-card ol::-webkit-scrollbar {
  width: 6px;
}

.group-card ol::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}

.group-card li:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
}

.generator-footer {
  padding: clamp(1rem, 4vw, 2rem) clamp(1.6rem, 6vw, 3.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(71, 85, 105, 0.7);
}

.group-summary svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1024px) {
  .generator-hero {
    grid-template-columns: 1fr;
  }

  .results-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .primary-btn,
  .secondary-btn {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    border-radius: 10px;
  }

  .primary-btn {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  }

  .primary-btn:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
  }

  .secondary-btn {
    border-color: rgba(203, 213, 225, 0.5);
  }
}

@media (max-width: 720px) {
  .generator-header,
  .generator-main,
  .generator-footer {
    padding-inline: clamp(1rem, 6vw, 1.4rem);
  }

  .hero-copy {
    gap: 1.2rem;
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    margin-bottom: 0.75rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 7vw, 2.75rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: rgba(15, 23, 42, 0.9);
  }

  .lead {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 100%;
    color: rgba(51, 65, 85, 0.72);
  }

  .hero-form-card {
    border-radius: 22px;
  }

  .generator-results {
    border-radius: 22px;
  }

  .input-grid {
    grid-template-columns: 1fr;
  }

  .group-card ol {
    max-height: 220px;
  }

  .question-head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .question-number {
    width: 1rem;
    height: 1rem;
    border-radius: 3px;
    font-size: 0.55rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
  }

  .question-content {
    flex: 1;
    min-width: 0;
    display: block;
  }

  .question-prompt {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .question-actions {
    flex-shrink: 0;
    margin-left: 0.5rem;
    align-self: flex-start;
    padding-top: 0.2rem;
  }

  .answer-toggle {
    padding: 0.15rem 0.45rem;
    font-size: 0.55rem;
    gap: 0.2rem;
    background: rgba(148, 163, 184, 0.08);
    color: rgba(71, 85, 105, 0.7);
    border-radius: 4px;
    border: none;
    font-weight: 500;
    min-width: auto;
  }

  .answer-toggle:hover,
  .question-card.is-open .answer-toggle {
    background: rgba(148, 163, 184, 0.12);
    color: rgba(71, 85, 105, 0.85);
    border-color: transparent;
    box-shadow: none;
  }

  .answer-toggle-label {
    font-size: 0.55rem;
    letter-spacing: 0.03em;
    text-transform: none;
    font-weight: 500;
  }

  .answer-toggle-icon {
    width: 8px;
    height: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .answer-toggle-icon svg {
    width: 8px;
    height: 8px;
  }

  .question-card.is-open .answer-toggle-icon {
    color: rgba(71, 85, 105, 0.85);
  }

  .results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .results-title {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .results-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .primary-btn,
  .secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  }

  .primary-btn {
    background: #2563eb;
    background-image: none;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
    border: none;
  }

  .primary-btn:hover:not(:disabled) {
    background: #1d4ed8;
    background-image: none;
    transform: none;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
  }

  .primary-btn:active:not(:disabled) {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
  }

  .secondary-btn {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.6);
    color: #1f2937;
    box-shadow: none;
  }

  .secondary-btn:hover {
    background: rgba(248, 250, 252, 0.95);
    border-color: rgba(203, 213, 225, 0.8);
    transform: none;
  }

  .secondary-btn:active {
    transform: scale(0.98);
    background: rgba(241, 245, 249, 0.95);
  }
}

/* Progress Modal */
.progress-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.progress-modal:not([hidden]) {
  display: flex; /* Show when not hidden */
}

.progress-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

.progress-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
  animation: slideUp 0.3s ease-out;
  z-index: 1;
}

.progress-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.progress-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.92);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.progress-modal-subtitle {
  font-size: 0.95rem;
  color: rgba(71, 85, 105, 0.7);
  margin: 0;
}

.progress-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(226, 232, 240, 0.8);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 4px;
  transition: width 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

.progress-percentage {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563eb;
  min-width: 3rem;
  text-align: right;
}

.progress-status {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(71, 85, 105, 0.75);
  min-height: 1.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 640px) {
  .progress-modal-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .progress-modal-header h2 {
    font-size: 1.25rem;
  }

  .progress-bar-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .progress-percentage {
    text-align: center;
    width: 100%;
  }
}

/* Testimonials Section */
.testimonials-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  margin-top: 2rem;
}

.testimonials-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.testimonials-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: rgba(15, 23, 42, 0.92);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

.testimonials-header p {
  font-size: 1.125rem;
  color: rgba(71, 85, 105, 0.75);
  margin: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(203, 213, 225, 0.5);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(30, 41, 59, 0.85);
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(203, 213, 225, 0.4);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #4f83ff);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
  min-width: 0;
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.9);
  margin-bottom: 0.125rem;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: rgba(71, 85, 105, 0.7);
}

/* Features Section */
.features-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 24px;
  margin-top: 2rem;
}

.features-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  position: relative;
}

.features-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 1rem 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.features-header p {
  font-size: 1.25rem;
  color: #64748b;
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.6;
  font-weight: 400;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(203, 213, 225, 0.4);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(37, 99, 235, 0.1);
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.02em;
}

.feature-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(71, 85, 105, 0.8);
  margin: 0;
  font-weight: 500;
}

.feature-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(203, 213, 225, 0.3);
}

.feature-details > p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(71, 85, 105, 0.8);
  margin: 0 0 1rem 0;
}

.feature-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.feature-details li {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(71, 85, 105, 0.75);
  margin: 0 0 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.feature-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1rem;
}

.feature-details li:last-child {
  margin-bottom: 0;
}

.feature-details strong {
  color: rgba(15, 23, 42, 0.9);
  font-weight: 600;
}

.feature-details > p:last-child {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(71, 85, 105, 0.7);
  font-style: italic;
}

/* How To Section */
.how-to-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  margin-top: 2rem;
}

.how-to-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.how-to-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: rgba(15, 23, 42, 0.92);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

.how-to-header p {
  font-size: 1.125rem;
  color: rgba(71, 85, 105, 0.75);
  margin: 0;
}

.how-to-steps {
  display: grid;
  gap: 1.75rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.step-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(203, 213, 225, 0.5);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
}

.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #4f83ff);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.92);
  margin: 0;
  letter-spacing: -0.01em;
}

.step-content > p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(71, 85, 105, 0.8);
  margin: 0;
}

.step-tips {
  margin-top: 0.5rem;
  padding: 1rem;
  background: rgba(37, 99, 235, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(71, 85, 105, 0.85);
}

.step-tips strong {
  color: var(--accent);
  font-weight: 600;
}

.how-to-cta {
  text-align: center;
  margin-top: 2rem;
}

.how-to-cta .primary-btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 768px) {
  .testimonials-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .testimonial-card,
  .feature-card {
    padding: 1.5rem;
  }

  .testimonials-header h2,
  .features-header h2,
  .how-to-header h2 {
    font-size: 1.75rem;
  }

  .testimonials-header p,
  .features-header p,
  .how-to-header p {
    font-size: 1rem;
  }

  .step-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .step-content {
    text-align: left;
  }

  .step-content h3 {
    font-size: 1.125rem;
  }
}

