:root {
  --ink: #172033;
  --muted: #667085;
  --paper: #f6f7fb;
  --panel: #fffefa;
  --line: #d9deea;
  --teal: #293f98;
  --teal-dark: #1d2f73;
  --coral: #ef233c;
  --gold: #f4b23c;
  --soft-indigo: #eef2ff;
  --soft-red: #fff1f3;
  --shadow: 0 22px 60px rgba(23, 32, 51, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: clamp(380px, 54vh, 560px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #1f2b29;
}

.hero--compact {
  min-height: clamp(300px, 42vh, 430px);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(12, 20, 19, 0.88), rgba(12, 20, 19, 0.52) 42%, rgba(12, 20, 19, 0.12)),
    linear-gradient(0deg, rgba(12, 20, 19, 0.54), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 72px;
  color: white;
}

.hero--compact .hero__content {
  padding: 62px 0 56px;
}

.hero__logo {
  display: block;
  width: clamp(140px, 13vw, 190px);
  height: auto;
  margin: 0 0 16px;
}

.eyebrow,
.panel-label {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero__meta span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.assessment {
  width: min(1120px, calc(100% - 40px));
  margin: -42px auto 64px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(41, 63, 152, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.progress-panel {
  position: sticky;
  top: 20px;
  padding: 22px;
}

.progress-panel h2,
.work-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.progress-track {
  height: 8px;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 99px;
  background: #e6e9f5;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  transition: width 180ms ease;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
}

.steps li::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 99px;
  border: 2px solid #bdb4a4;
}

.steps li.is-current {
  color: var(--ink);
}

.steps li.is-current::before {
  background: var(--coral);
  border-color: var(--coral);
}

.steps li.is-done::before {
  background: var(--teal);
  border-color: var(--teal);
}

.notice {
  margin-top: 26px;
  padding: 14px;
  border-left: 4px solid var(--coral);
  background: var(--soft-indigo);
  color: #29345f;
  line-height: 1.45;
}

.work-panel {
  padding: clamp(20px, 4vw, 34px);
  min-height: 560px;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.exam-card {
  position: relative;
  min-height: 122px;
  padding: 18px 18px 18px 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: end;
  cursor: pointer;
  background: #fff;
}

.exam-card input {
  position: absolute;
  inset: 14px auto auto 14px;
  accent-color: var(--teal);
}

.exam-card--static {
  cursor: default;
  background:
    linear-gradient(180deg, rgba(41, 63, 152, 0.08), rgba(255, 255, 255, 0)),
    #fff;
}

.exam-card span {
  font-size: 1.15rem;
  font-weight: 800;
}

.exam-card small {
  margin-top: 4px;
  color: var(--muted);
}

.exam-card:has(input:checked) {
  border-color: var(--teal);
  outline: 3px solid rgba(41, 63, 152, 0.14);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  min-height: 52px;
}

textarea {
  resize: vertical;
  line-height: 1.55;
}

.question-stack {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.question {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.question p {
  margin: 0 0 14px;
  line-height: 1.5;
  font-weight: 750;
}

.option-list {
  display: grid;
  gap: 8px;
}

.option-list label {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

.option-list label:has(input:checked) {
  border-color: var(--teal);
  background: rgba(41, 63, 152, 0.08);
}

.reading-passage,
.prompt {
  margin: 20px 0;
  padding: 18px;
  border-radius: 8px;
  background: var(--soft-indigo);
  border: 1px solid #c7d2fe;
  line-height: 1.65;
}

.pte-read-aloud {
  font-size: 1.08rem;
}

.ielts-instructions {
  margin-top: 18px;
  line-height: 1.6;
}

.audio-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.audio-panel span {
  color: var(--muted);
  font-weight: 800;
}

.audio-panel audio {
  width: 100%;
}

.ielts-instructions--compact {
  margin-top: 12px;
}

.ielts-instructions--compact + .sentence-completion {
  margin-top: 10px;
}

.note-completion {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.note-completion h3 {
  margin: 0;
  padding: 16px 18px;
  text-align: center;
  font-size: 1.08rem;
  border-bottom: 1px solid var(--line);
}

.short-answer-stack {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.short-answer-stack p {
  margin: 0;
  line-height: 1.8;
}

.short-answer-stack input[type="text"] {
  display: inline-block;
  width: min(170px, 100%);
  margin: 0 4px;
  min-height: 34px;
  padding: 6px 10px;
  border-color: var(--line);
  border-radius: 2px;
  background: #fff;
}

.note-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

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

.note-row > div,
.note-row > label {
  padding: 16px 18px;
}

.note-row > div {
  border-right: 1px solid var(--line);
}

.note-row label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
}

.blank-number {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-weight: 800;
  background: #fff;
}

.note-row input[type="text"] {
  width: min(180px, 100%);
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 2px;
}

.sentence-completion {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sentence-completion p {
  margin: 0;
  line-height: 1.8;
}

.sentence-completion input[type="text"] {
  display: inline-block;
  width: min(170px, 100%);
  min-height: 34px;
  margin: 0 4px;
  padding: 6px 10px;
  border-radius: 2px;
}

.cue-list {
  margin: -8px 0 18px;
  padding: 18px 18px 18px 38px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: var(--soft-indigo);
  line-height: 1.7;
}

.text-field {
  margin-top: 16px;
}

.section-subtitle {
  margin: 24px 0 0;
  font-size: 1.05rem;
}

.task-timer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.timer-label {
  color: var(--muted);
  font-weight: 800;
}

.timer-status {
  grid-column: 1 / -1;
  justify-self: end;
  color: var(--coral);
  font-weight: 850;
}

.task-timer strong {
  font-size: 2rem;
  color: var(--teal-dark);
  line-height: 1;
}

.timer-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.timer-actions .button {
  min-width: 104px;
}

.writing-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

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

.score-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--teal) var(--score), #e6e9f5 0);
}

.score-circle span {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--panel);
  font-size: 2.2rem;
  font-weight: 900;
}

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

.result-tile {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.result-tile small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.result-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

.feedback-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.65;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 32px;
}

.button {
  min-width: 126px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--coral);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.button:hover {
  background: #c9182c;
}

.button--ghost {
  background: #e8ebf5;
  color: var(--ink);
}

.button--ghost:hover {
  background: #dbe1f2;
}

.button:disabled {
  cursor: default;
  opacity: 0.75;
}

.is-hidden {
  display: none;
}

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

  .progress-panel {
    position: static;
  }

  .exam-grid,
  .field-row,
  .result-grid,
  .score-band,
  .note-row {
    grid-template-columns: 1fr;
  }

  .note-row > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .score-circle {
    width: 132px;
    height: 132px;
  }

  .score-circle span {
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 500px;
  }

  .hero__shade {
    background: linear-gradient(0deg, rgba(12, 20, 19, 0.88), rgba(12, 20, 19, 0.44));
  }

  .hero__content,
  .assessment {
    width: min(100% - 28px, 1120px);
  }

  .hero__logo {
    width: 150px;
    margin-bottom: 14px;
  }

  .actions {
    flex-direction: column-reverse;
  }

  .task-timer {
    grid-template-columns: 1fr;
  }

  .timer-actions {
    justify-content: stretch;
  }

  .button {
    width: 100%;
  }

  .writing-tools {
    display: grid;
  }
}
