body {
  background-color: #fff;
}

/* -------------------------
HOME / MARKETING
------------------------- */
.hero {
  padding: 100px 0 120px;
  margin-bottom: 80px;
  background: linear-gradient(#fff, rgba(124, 92, 255, 0.3));
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 0 50px;
}

.hero-left {
  max-width: 560px;
}

.hero h1 {
  margin-bottom: 24px;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 800;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  margin-bottom: 28px;
  color: var(--text-soft);
  font-size: 16px;
}

.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
}

/* -------------------------
HOME: HERO QUIZ CARD
------------------------- */
.quiz-card {
  width: 300px;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transform: scale(0.92);
  opacity: 0.96;
}

.quiz-header {
  margin-bottom: 10px;
  font-weight: 700;
}

.quiz-question {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 14px;
}

.quiz-option {
  margin-bottom: 6px;
  padding: 8px;
  border-radius: 6px;
  background: var(--surface-muted);
  font-size: 13px;
}

.quiz-option.correct {
  background: #e2dcff;
}

.quiz-footer {
  margin-top: 20px;
  color: #777;
  font-size: 12px;
  text-align: center;
}

.chip {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  color: var(--text-soft);
  font-size: 13px;
}

/* -------------------------
HOME: SHARED SECTION HEADERS
------------------------- */
.home-section-header {
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: center;
}

.home-section-header .mini-pill {
  margin-bottom: 14px;
}

.home-section-header h2,
.home-no-account h2 {
  margin-bottom: 12px;
  font-size: 34px;
  letter-spacing: -0.02em;
}

.home-section-header p,
.home-no-account p {
  font-size: 16px;
  line-height: 1.65;
}

/* -------------------------
HOME: DEMO ASSESSMENTS
------------------------- */
.home-demo-section {
  margin-top: 80px;
  padding: 40px;
  border-radius: 20px;
  background: var(--primary-soft);
}

.home-demo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-demo-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.home-demo-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.home-demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-demo-code {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.home-demo-body h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.home-demo-body p {
  font-size: 14px;
  line-height: 1.55;
}

.home-demo-meta {
  margin-top: auto;
  color: var(--text);
  font-size: 13px;
}

.home-demo-btn {
  width: 100%;
}

/* -------------------------
HOME: AUDIENCE STRIP
------------------------- */
.home-usecases-strip {
  padding: 80px 0 0;
}

.home-audience-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-audience-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 26px 22px;
  border-right: 1px solid var(--border);
}

.home-audience-item:last-child {
  border-right: 0;
}

.home-audience-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--primary-soft);
}

.home-audience-visual img,
.home-usecase-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.home-audience-copy {
  min-width: 0;
}

.home-audience-label {
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-audience-copy h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.home-audience-copy p {
  min-height: 78px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.55;
}

/* -------------------------
HOME: FORMATTING FIT SECTION
------------------------- */
.home-format-fit-section {
  border-top: 5px solid var(--primary-soft);
  padding-top: 80px;
  margin-top: 80px;
}

.home-format-fit-header {
  margin-bottom: 22px;
}

.home-format-fit-header h2 {
  margin-top: 12px;
  font-size: 34px;
}

.home-format-fit-header p {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.65;
}

.home-format-fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-format-fit-item {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
}

.home-format-fit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-format-fit-top strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  text-align: right;
}

.home-format-fit-preview {
  min-width: 0;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid rgba(124, 92, 255, 0.12);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.home-format-fit-preview .quizera-rich-text {
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.home-format-fit-preview .quizera-rich-text p {
  margin-bottom: 9px;
}

.home-format-fit-preview .quizera-rich-text pre {
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 10px;
}

.home-format-fit-preview .quizera-rich-text pre code {
  font-size: 12px;
}

.home-format-fit-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.katex-display {
  margin: 25px 0;
  font-size: 18px;
}
/* -------------------------
HOME: PUBLIC TESTING
------------------------- */
.home-no-account {
  padding-top: 80px;
}

.home-no-account-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
  padding: 38px;
  border-radius: 24px;
  background: var(--primary-soft);
  box-shadow: var(--shadow-md);
}

.home-no-account-card .mini-pill {
  margin-bottom: 14px;
}

.home-no-account-points {
  display: grid;
  gap: 12px;
}

.home-no-account-points div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.04);
}

.home-no-account-points strong,
.home-no-account-points span {
  display: block;
}

.home-no-account-points strong {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
}

.home-no-account-points span {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

/* -------------------------
HOME: CTA
------------------------- */
.cta {
  padding-top: 80px;
}

.cta .container {
  padding: 60px;
  border-radius: 20px;
  background: linear-gradient(135deg, #6f5cff, var(--primary-2));
  color: #fff;
  text-align: center;
}

.cta .container h2 {
  color: #fff;
}

.cta .container p {
  color: rgba(255, 255, 255, 0.7);
}

.cta .btn {
  margin-top: 20px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
}

.cta .btn:hover {
  background: #fff;
  color: var(--primary);
}

/* -------------------------
HOME: LEGACY / SHARED
------------------------- */
.step {
  border: 4px solid var(--border);
}

/* -------------------------
HOME: RESPONSIVE
------------------------- */
@media (max-width: 1120px) {
  .home-audience-strip,
  .home-format-fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-audience-item:nth-child(2) {
    border-right: 0;
  }

  .home-audience-item:nth-child(1),
  .home-audience-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .home-format-fit-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 1080px) {
  .home-demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 60px 0 80px;
    margin-bottom: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-left {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
  }

  .hero-right {
    justify-content: center;
  }

  .quiz-card {
    transform: scale(1);
  }

  .home-section-header h2,
  .home-no-account h2 {
    font-size: 29px;
  }

  .home-no-account-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .home-usecases-strip {
    padding-top: 64px;
  }

  .home-audience-strip,
  .home-format-fit-grid {
    grid-template-columns: 1fr;
  }

  .home-audience-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .home-audience-item:last-child {
    border-bottom: 0;
  }

  .home-format-fit-section {
    margin-top: 56px;
    padding-top: 56px;
  }

  .home-format-fit-header h2 {
    font-size: 29px;
  }

}

@media (max-width: 640px) {
  .home-demo-section {
    padding: 28px;
  }

  .home-demo-grid {
    grid-template-columns: 1fr;
  }

  .home-demo-card {
    padding: 24px 20px;
  }

  .home-no-account-card {
    padding: 24px 20px;
  }
}

@media (max-width: 520px) {
  .hero-grid {
    padding: 0 30px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 15px;
  }
}