:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #d8dee8;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --navy: #16324f;
  --teal: #0f766e;
  --gold: #c58a1b;
  --red: #b42318;
  --shadow: 0 24px 70px rgba(22, 50, 79, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(23, 32, 42, 0.72);
  backdrop-filter: blur(10px);
}

.access-gate.visible {
  display: grid;
}

.access-card {
  display: grid;
  width: min(100%, 480px);
  gap: 18px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: weightageReveal 420ms ease both;
}

.access-card h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.access-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.access-card button {
  min-height: 46px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-action,
.primary-btn,
.secondary-btn,
.plan-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
}

.nav-action,
.primary-btn,
.plan-card button {
  color: #fff;
  background: var(--teal);
  border: 0;
}

.nav-action {
  padding: 0 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 69px);
  padding: clamp(44px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(rgba(244, 247, 251, 0.88), rgba(244, 247, 251, 0.78)),
    url("https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin: 22px 0 0;
  color: #344054;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-btn,
.secondary-btn {
  padding: 0 22px;
}

.secondary-btn {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
}

.hero-panel {
  width: min(100%, 440px);
  justify-self: end;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 700;
}

.progress-ring {
  display: grid;
  width: 190px;
  height: 190px;
  margin: 30px auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 72%, #e6edf2 0);
}

.progress-ring span {
  display: grid;
  width: 138px;
  height: 138px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 2rem;
  font-weight: 800;
}

.task-list {
  display: grid;
  gap: 14px;
}

.task-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c9d3df;
}

.dot.complete {
  background: var(--teal);
}

.dot.active {
  background: var(--gold);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-strip div {
  padding: 24px clamp(18px, 4vw, 52px);
  background: #fff;
}

.stats-strip strong {
  display: block;
  font-size: 2rem;
}

.stats-strip span {
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.tinted {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
}

.planner,
.test-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
  align-items: stretch;
}

.plan-card,
.plan-output,
.subject-card,
.question-card,
.analysis-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 44px rgba(22, 50, 79, 0.08);
}

.plan-card {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 0.92rem;
  font-weight: 700;
}

select,
input[type="date"],
input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

input[type="range"] {
  accent-color: var(--teal);
}

.plan-card button {
  cursor: pointer;
  font: inherit;
}

.registration-layout,
.diagram-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: stretch;
}

.registration-card,
.registration-summary,
.practice-card,
.diagram-card,
.diagram-board {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 44px rgba(22, 50, 79, 0.08);
}

.registration-card {
  display: grid;
  gap: 18px;
}

.email-only-card {
  align-content: start;
}

.registration-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.registration-summary h3 {
  margin: 0 0 16px;
}

.registration-summary ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
  color: #344054;
  line-height: 1.55;
}

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

.practice-card p,
.diagram-card li {
  color: var(--muted);
  line-height: 1.6;
}

.chapter-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.chapter-list h4 {
  margin: 12px 0 2px;
  color: var(--teal);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.chapter-list button:hover {
  border-color: var(--teal);
  background: #e7f5f3;
}

.pyq-grid,
.pyq-subject-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pyq-grid a {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 44px rgba(22, 50, 79, 0.08);
}

.pyq-grid span {
  color: var(--muted);
  font-weight: 600;
}

.pyq-grid a:hover {
  border-color: var(--teal);
}

.weightage-note {
  max-width: 860px;
  margin: -10px 0 24px;
  padding: 14px 16px;
  color: #344054;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.5;
}

.weightage-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.weightage-switch button {
  min-height: 44px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.weightage-switch button.selected {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.weightage-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.weightage-grid.active {
  display: grid;
}

.weightage-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 44px rgba(22, 50, 79, 0.08);
  animation: weightageReveal 420ms ease both;
}

.weightage-card:nth-child(2) {
  animation-delay: 80ms;
}

.weightage-card:nth-child(3) {
  animation-delay: 160ms;
}

@keyframes weightageReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.weightage-card h3 {
  margin: 0 0 14px;
}

.weightage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.weightage-row:last-child {
  border-bottom: 0;
}

.weightage-row span {
  color: #344054;
  font-weight: 650;
  line-height: 1.35;
}

.weightage-row strong {
  min-width: 76px;
  padding: 6px 10px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-size: 0.78rem;
  text-align: center;
}

.diagram-board {
  display: grid;
  min-height: 360px;
  place-items: center;
  background: linear-gradient(135deg, #f4f7fb, #eef8f6);
}

.cell-diagram {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1.35;
  border: 4px solid var(--teal);
  border-radius: 48% 52% 44% 56%;
  background: rgba(255, 255, 255, 0.82);
}

.cell-diagram span {
  position: absolute;
  display: grid;
  min-width: 92px;
  min-height: 38px;
  place-items: center;
  padding: 8px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.nucleus {
  left: 38%;
  top: 36%;
}

.mitochondria {
  left: 9%;
  top: 56%;
  background: var(--gold) !important;
}

.vacuole {
  right: 11%;
  top: 18%;
  background: var(--teal) !important;
}

.plan-output h3,
.subject-card h3,
.question-card h3,
.analysis-card h3 {
  margin: 0 0 16px;
}

.plan-output ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
  color: #344054;
  line-height: 1.55;
}

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

.subject-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  font-weight: 800;
}

.subject-card p {
  min-height: 92px;
  color: var(--muted);
  line-height: 1.6;
}

meter {
  width: 100%;
  height: 12px;
}

.question-meta,
.analysis-row,
.resource-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.question-meta {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

#timer {
  color: var(--red);
}

.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.options button {
  min-height: 52px;
  padding: 10px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.options button:hover,
.options button.selected {
  border-color: var(--teal);
  background: #e7f5f3;
}

.options button.correct {
  color: #fff;
  background: var(--teal);
}

.options button.incorrect {
  color: #fff;
  background: var(--red);
}

.test-card {
  display: grid;
  gap: 16px;
}

.test-toolbar,
.test-actions,
.mode-buttons,
.subject-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.test-toolbar {
  justify-content: space-between;
}

.mode-buttons button,
.subject-tabs button,
.secondary-test-btn,
.submit-test-btn,
.start-test-btn {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.mode-buttons button,
.subject-tabs button,
.secondary-test-btn {
  color: var(--ink);
  background: #fff;
}

.mode-buttons button.selected,
.subject-tabs button.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.subject-tabs button.answered {
  border-color: var(--teal);
  box-shadow: inset 0 -3px 0 var(--teal);
}

.submit-test-btn,
.start-test-btn {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.test-actions {
  justify-content: space-between;
  padding-top: 4px;
}

.test-actions button {
  flex: 1 1 140px;
}

.paper-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.paper-switch button {
  min-height: 44px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.paper-switch button.selected {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.paper-panel {
  display: none;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 44px rgba(22, 50, 79, 0.08);
}

.paper-panel.active {
  display: block;
  animation: weightageReveal 420ms ease both;
}

.paper-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.paper-heading h3 {
  margin: 0;
}

.paper-heading span {
  color: var(--muted);
  font-weight: 800;
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.paper-grid button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.paper-grid button:hover {
  border-color: var(--teal);
  background: #e7f5f3;
}

.paper-grid strong {
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 0.75rem;
}

.notes-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.notes-switch button {
  min-height: 44px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.notes-switch button.selected {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.note-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 44px rgba(22, 50, 79, 0.08);
  animation: weightageReveal 420ms ease both;
}

.note-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.note-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #344054;
  line-height: 1.45;
}

.question-bank-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 44px rgba(22, 50, 79, 0.08);
}

.bank-question {
  min-height: 96px;
  padding: 18px;
  color: #344054;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.6;
}

.bank-options {
  margin-top: 14px;
  margin-bottom: 14px;
}

.leaderboard-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 44px rgba(22, 50, 79, 0.08);
}

.leaderboard-head,
.leaderboard-row {
  display: grid;
  grid-template-columns: 0.55fr 2fr 1fr 0.9fr 0.9fr;
  gap: 12px;
  align-items: center;
}

.leaderboard-head {
  padding: 0 0 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboard-rows {
  display: grid;
}

.leaderboard-rows p {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.leaderboard-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 750;
}

.leaderboard-row:last-child {
  border-bottom: 0;
}

.leaderboard-row strong {
  color: var(--teal);
}

.quiz-feedback {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.answer-key {
  display: none;
  gap: 12px;
}

.answer-key.visible {
  display: grid;
  animation: weightageReveal 420ms ease both;
}

.answer-key h4 {
  margin: 8px 0 0;
}

.answer-item {
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.answer-item strong {
  display: block;
  margin-bottom: 6px;
}

.answer-item p {
  margin: 6px 0 0;
  color: #344054;
  line-height: 1.5;
}

.answer-status {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 8px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
}

.answer-status.wrong {
  background: var(--red);
}

.answer-status.unattempted {
  background: var(--gold);
}

.analysis-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.analysis-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.analysis-row:last-child {
  border-bottom: 0;
}

.analysis-row span,
.resource-list span {
  color: var(--muted);
  font-weight: 600;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.resource-list a {
  min-height: 100px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resource-list a:hover {
  border-color: var(--teal);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--navy);
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero,
  .planner,
  .test-layout,
  .registration-layout,
  .diagram-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    justify-self: start;
  }

  .stats-strip,
  .subject-grid,
  .practice-grid,
  .pyq-grid,
  .pyq-subject-grid,
  .weightage-grid,
  .paper-grid,
  .notes-grid,
  .resource-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 12px;
  }

  .nav-action {
    display: none;
  }

  .stats-strip,
  .subject-grid,
  .practice-grid,
  .pyq-grid,
  .pyq-subject-grid,
  .weightage-grid,
  .paper-grid,
  .notes-grid,
  .resource-list,
  .options {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .leaderboard-head {
    display: none;
  }

  .leaderboard-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
