/* Homepage syllabus transition. Keep the shared app and account UI unchanged. */
.home-2027 { --ready-accent: #8ce4d1; --ready-tint: rgba(76, 201, 171, .1); }
.home-2027 .home-redesign-inner { gap: 28px; }
.home-2027 .home-hero-panel {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  padding: clamp(28px, 4vw, 52px); gap: clamp(24px, 4vw, 48px);
  background: radial-gradient(ellipse at 0 0, rgba(40, 109, 166, .16), transparent 65%), #0d1524;
  border-color: rgba(125, 211, 252, .18); border-radius: 28px;
  overflow: hidden;
}
.home-2027 .home-hero-copy { min-width: 0; }
.home-2027 .home-hero-copy h1 { font-size: clamp(35px, 4.2vw, 59px); line-height: 1.09; letter-spacing: -.045em; margin-bottom: 20px; }
.home-2027 .home-hero-copy h1 span { color: #9ccef7; }
.home-2027 .home-hero-copy > p { font-size: 17px; line-height: 1.7; }
.home-2027 .home-kicker { color: var(--ready-accent); border-color: rgba(76, 201, 171, .28); background: var(--ready-tint); margin-bottom: 24px; font-size: 10px; letter-spacing: .08em; gap: 8px; }
.home-ready-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.home-2027 .home-actions { align-items: center; margin-top: 24px; gap: 18px; }
.home-2027 .home-btn.primary { background: #3988ee; border-color: #63a6fc; color: #fff; box-shadow: 0 8px 24px rgba(32, 107, 212, .22); text-decoration: none; gap: 20px; min-height: 50px; padding: 12px 20px; }
.home-2027 .home-btn.primary:hover { background: #2878df; transform: translateY(-1px); }
.home-2027 .home-feature-pill { font-size: 12px; padding: 7px 10px; font-weight: 600; }
.home-2027 .home-hero-support { font-size: 12px !important; font-weight: 500; }
.home-syllabus-preview { position: relative; z-index: 1; border: 1px solid rgba(148, 163, 184, .22); border-radius: 20px; background: rgba(255, 255, 255, .035); padding: 24px; min-width: 0; }
.home-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 24px; }
.home-preview-label { font-size: 9px; letter-spacing: .12em; font-weight: 700; color: #a8b5c9; }
.home-ready-status { font-size: 10px; padding: 5px 8px; color: var(--ready-accent); background: var(--ready-tint); border-radius: 6px; white-space: nowrap; }
.home-syllabus-preview h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 10px; }
.home-syllabus-preview > p { color: #a8b5c9; font-size: 13px; line-height: 1.5; margin: 0 0 22px; }
.home-syllabus-course { display: flex; align-items: center; gap: 11px; padding: 15px 0; border-top: 1px solid rgba(148, 163, 184, .15); }
.home-course-check { display: grid; place-items: center; height: 26px; width: 26px; flex: none; border-radius: 8px; color: var(--ready-accent); background: var(--ready-tint); font-size: 12px; }
.home-syllabus-course strong { display: block; font-size: 13px; margin-bottom: 5px; }
.home-syllabus-course div > span { display: block; font-size: 11px; color: #a8b5c9; line-height: 1.5; }
.home-syllabus-source { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #a8b5c9; font-size: 10px; line-height: 1.5; text-decoration: none; padding-top: 17px; border-top: 1px solid rgba(148, 163, 184, .15); }
.home-syllabus-source:hover { color: var(--text); text-decoration: underline; }
.home-2027 .home-pathway-card { min-height: 305px; padding: 24px; }
.home-2027 .home-pathway-eyebrow { font-size: 10px; letter-spacing: .08em; }
.home-2027 .home-pathway-card h3 { font-size: 24px; line-height: 1.15; }
.home-2027 .home-pathway-card > p { font-size: 14px; line-height: 1.65; margin: 0 0 20px; }
.home-2027 .home-pathway-action { font-size: 13px; line-height: 1.5; text-align: left; }
.home-2027 .home-course-tab { background: rgba(255,255,255,.035); color: #b8c7da; }
.home-2027 .home-course-tab.active { background: rgba(216,201,155,.12); color: #eef3fb; }
.home-2027 .practice-set-pathway .home-pathway-eyebrow,
.home-2027 .practice-set-pathway .home-pathway-action { color: var(--home-accent-gold); }
.home-legacy-notice { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 24px; padding: 26px 32px; border: 1px solid rgba(197, 161, 95, .22); border-radius: 20px; background: rgba(197, 161, 95, .035); }
.home-legacy-tag { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .1em; color: #d8c99b; margin-bottom: 10px; }
.home-legacy-heading h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.02em; margin: 0; }
.home-legacy-copy p { color: var(--text-muted); font-size: 13px; line-height: 1.7; margin: 0 0 10px; }
.home-legacy-link { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--text-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.home-legacy-link:hover { color: var(--text); }
.home-syllabus-faq .home-section-heading { margin-bottom: 24px; }
.home-syllabus-faq details { border-top: 1px solid var(--home-border-subtle); }
.home-syllabus-faq summary { font-size: 15px; line-height: 1.5; font-weight: 600; padding: 19px 24px 19px 0; cursor: pointer; }
.home-syllabus-faq details p { max-width: 850px; margin: 0 0 20px; color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.home-2027 a:focus-visible, .home-2027 button:focus-visible, .home-2027 summary:focus-visible { outline: 3px solid #70aefa; outline-offset: 4px; }
[data-theme="light"] .home-2027 { --ready-accent: #146650; --ready-tint: #e9f6f0; }
[data-theme="light"] .home-2027 .home-hero-panel { background: radial-gradient(ellipse at 0 0, #eaf3ff, transparent 70%), #fff; border-color: #d8e5f1; }
[data-theme="light"] .home-2027 .home-hero-copy h1 span { color: #2868b3; }
[data-theme="light"] .home-2027 .home-syllabus-preview { background: rgba(255,255,255,.9); border-color: #d9e3ee; box-shadow: 0 10px 30px rgba(34, 65, 95, .05); }
[data-theme="light"] .home-2027 .home-preview-label,
[data-theme="light"] .home-2027 .home-syllabus-preview > p,
[data-theme="light"] .home-2027 .home-syllabus-course div > span,
[data-theme="light"] .home-2027 .home-syllabus-source { color: #52657a; }
[data-theme="light"] .home-2027 .home-syllabus-course,
[data-theme="light"] .home-2027 .home-syllabus-source { border-color: #e3e9f0; }
[data-theme="light"] .home-2027 .home-legacy-notice { background: #fcfaf6; border-color: #e7dfcd; }
[data-theme="light"] .home-2027 .home-legacy-tag { color: #805c1f; }
[data-theme="light"] .home-2027 .home-course-tab { background: #f8fafc; color: #42566f; }
[data-theme="light"] .home-2027 .home-course-tab.active { background: #fff7e5; color: #24354c; }
[data-theme="light"] .home-2027 .practice-set-pathway .home-pathway-eyebrow,
[data-theme="light"] .home-2027 .practice-set-pathway .home-pathway-action { color: #805c1f; }
@media (max-width: 1100px) { .home-2027 .home-hero-panel { grid-template-columns: 1fr; } .home-2027 .home-syllabus-preview { max-width: none; } }
@media (max-width: 640px) {
  .home-2027 .home-hero-panel { padding: 28px 22px; gap: 28px; }
  .home-2027 .home-hero-copy h1 { font-size: 38px; }
  .home-2027 .home-hero-copy > p { font-size: 15px; }
  .home-2027 .home-kicker { font-size: 9px; padding: 8px 10px; }
  .home-2027 .home-actions { gap: 12px; }
  .home-2027 .home-syllabus-preview { padding: 20px; }
  .home-2027 .home-preview-top { margin-bottom: 18px; }
  .home-2027 .home-pathway-card { min-height: 260px; }
  .home-2027 .home-legacy-notice { grid-template-columns: 1fr; padding: 22px; gap: 16px; }
}

.home-library { align-self: center; }
.home-library h2 span {
  display: block;
  margin-bottom: 4px;
  color: var(--home-accent-blue);
  font-size: clamp(36px, 5vw, 50px);
  line-height: 1;
}
.home-library > p { margin: 0 0 16px; }
.home-library-features { padding: 14px 0 0; margin: 0; border-top: 1px solid var(--border); list-style: none; display: grid; gap: 10px; }
.home-library-features li { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; }
.home-library-features svg, #home-demo-next svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-library-features svg { color: var(--home-accent-blue); }

#practice-pathways { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: no-preference) {
  html:has(#practice-pathways:target) { scroll-behavior: smooth; }
}
#practice-pathways:focus-visible { outline: 3px solid #70aefa; outline-offset: 4px; }
.home-practice-intro > p, .home-demo-guide > p { max-width: 72ch; }
.home-practice-intro .home-demo-signup-note { margin-top: 8px; color: var(--text-muted); font-size: 13px; }
.home-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}
.home-demo-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-card);
  overflow: hidden;
}
.home-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.home-demo-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
#home-demo-topic { display: block; margin-top: 4px; color: var(--text-muted); font-size: 13px; }
#home-demo-next { display: inline-flex; align-items: center; gap: 6px; }
.home-demo-body { padding: 18px; }
#home-demo-stem, #home-demo-steps, .home-demo-option {
  font-family: KaTeX_Main, 'Times New Roman', serif;
  font-size: 1.08rem;
  line-height: 1.5;
}
#home-demo-stem, #home-demo-steps { overflow-x: auto; }
#home-demo-stem p, #home-demo-steps p { margin: 0 0 14px; }
#home-demo-stem p:last-child, #home-demo-steps p:last-child { margin-bottom: 0; }
#home-demo-steps .katex-display { overflow-x: auto; padding: 6px 0 4px; }
#home-demo-steps .katex-display > .katex { white-space: normal; }
#home-demo-answer { display: grid; gap: 10px; margin-top: 18px; min-width: 0; }
.home-demo-option {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow-x: auto;
}
.home-demo-option strong { flex: none; min-width: 28px; }
.home-demo-option > span { min-width: 0; }
.home-demo-option span > p { display: inline; margin: 0; }
.home-demo-option:hover:not(:disabled) { border-color: rgba(59,130,246,.45); }
.home-demo-option[aria-pressed="true"] { border-color: rgba(59,130,246,.55); background: rgba(59,130,246,.12); }
.home-demo-option:disabled { cursor: default; }
.home-demo-option.correct, #home-demo-feedback.correct { border-color: rgba(16,185,129,.55); background: rgba(16,185,129,.14); color: #b8ffe3; }
.home-demo-option.wrong, #home-demo-feedback.wrong { border-color: rgba(244,63,94,.55); background: rgba(244,63,94,.14); color: #ffd6dd; }
[data-theme="light"] .home-demo-option.correct, [data-theme="light"] #home-demo-feedback.correct { color: #065f46; }
[data-theme="light"] .home-demo-option.wrong, [data-theme="light"] #home-demo-feedback.wrong { color: #9f1239; }
.home-demo-button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.home-demo-button:disabled { opacity: .55; cursor: default; }
.home-demo-check { background: #235ec1; color: #fff; }
.home-demo-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
#home-demo-feedback { padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
#home-demo-solution-placeholder, #home-demo-correct-answer { margin: 0; font-size: 14px; color: var(--text-muted); }
#home-demo-solution-placeholder h4 { margin: 0 0 10px; color: var(--text); font-size: 15px; }
#home-demo-solution-placeholder ol { margin: 0; padding-left: 20px; line-height: 1.6; }
#home-demo-solution-placeholder li + li { margin-top: 7px; }
#home-demo-correct-answer { margin-bottom: 14px; font-weight: 700; }
.home-demo-guide { margin-top: 24px; }
.home-demo-guide h3 { margin: 0 0 10px; font-size: 20px; }
.home-demo-guide p { margin: 0 0 16px; color: var(--text-muted); line-height: 1.65; }
.home-demo-guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.home-demo-guide .home-pathway-action { min-height: 44px; margin: 0; color: var(--home-accent-blue); }
.home-demo-guide .home-practice-cta {
  min-height: 44px;
  border-color: var(--home-accent-blue);
  background: transparent;
  color: var(--home-accent-blue);
}
.home-demo-guide .home-practice-cta:hover { background: rgba(59,130,246,.12); }
.home-mock-copy > .home-mock-download-note { margin-top: .6em; font-size: 13px; }
.home-syllabus-faq summary { padding-block: 14px; }
.home-syllabus-faq .home-legacy-link { margin: 0 0 18px; }
@media (max-width: 760px) {
  .home-demo-layout { grid-template-columns: minmax(0, 1fr); }
  #home-demo-stem, #home-demo-steps, .home-demo-option { font-size: 1rem; }
}
