:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #5c6878;
  --line: #d9e1ea;
  --paper: #ffffff;
  --field: #f4f7fb;
  --blue: #1c63b7;
  --green: #16825d;
  --amber: #f2b740;
  --red: #b73737;
  --shadow: 0 18px 45px rgba(24, 33, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--field);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 225, 234, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: clamp(164px, 17vw, 206px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 0.93rem;
}

.nav-links a {
  text-decoration: none;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 20px rgba(22, 130, 93, 0.2);
  font-weight: 750;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  filter: brightness(0.95);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.button.dark {
  background: var(--ink);
  box-shadow: 0 10px 20px rgba(24, 33, 47, 0.22);
}

.hero {
  position: relative;
  min-height: 560px;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #18212f url("/assets/trade-prep-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 19, 31, 0.9) 0%, rgba(11, 19, 31, 0.72) 42%, rgba(11, 19, 31, 0.2) 100%),
    linear-gradient(0deg, rgba(11, 19, 31, 0.72), rgba(11, 19, 31, 0) 32%);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0 76px;
  display: grid;
  align-items: end;
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: #d6f4e8;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
a,
button {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 4.7vw, 4.9rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-top: 32px;
}

.metric {
  min-height: 86px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
}

.section {
  padding: 58px 0;
}

.section.tight {
  padding: 42px 0;
}

.section.white {
  background: #fff;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-head p {
  max-width: 630px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.grid > *,
.split > *,
.page-hero-grid > *,
.auth-grid > * {
  min-width: 0;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.exam-card,
.info-card,
.pricing-panel,
.quiz-shell,
.terms-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(24, 33, 47, 0.06);
}

.exam-card {
  display: flex;
  flex-direction: column;
  min-height: 318px;
  padding: 20px;
  text-decoration: none;
}

.exam-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #164b8c;
  font-size: 0.76rem;
  font-weight: 800;
}

.badge.green {
  background: #e8f7f0;
  color: #116647;
}

.badge.amber {
  background: #fff5dc;
  color: #7b5606;
}

.exam-card p,
.info-card p,
.pricing-panel p,
.terms-panel p,
.quiz-rationale {
  color: var(--muted);
}

.exam-card ul,
.info-card ul,
.terms-panel ul {
  padding-left: 19px;
  color: var(--muted);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.price {
  color: var(--green);
  font-weight: 850;
}

.page-hero {
  padding: 64px 0 42px;
  background: #fff;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: start;
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2.35rem, 4.6vw, 4.6rem);
}

.page-hero p {
  color: var(--muted);
  font-size: 1.08rem;
}

.terms-panel {
  padding: 22px;
}

.pricing-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 33, 47, 0.06);
}

.pricing-strip h2 {
  max-width: 760px;
}

.pricing-strip p {
  max-width: 660px;
  color: var(--muted);
}

.terms-panel h2,
.terms-panel h3 {
  font-size: 1.1rem;
}

.terms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.terms-list li {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  font-size: 0.86rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.info-card,
.pricing-panel,
.quiz-shell {
  padding: 22px;
}

.pricing-panel {
  position: sticky;
  top: 92px;
}

.pricing-panel .big-price {
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: 2.3rem;
  line-height: 1;
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 20px 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 5px #dff5ec;
}

.quiz-shell {
  margin-top: 20px;
}

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

.quiz-question:first-child {
  padding-top: 0;
}

.quiz-question:last-child {
  border-bottom: 0;
}

.quiz-kicker {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.quiz-option:hover {
  border-color: #9ab7d9;
}

.quiz-option.is-selected {
  border-color: var(--blue);
  background: #eef6ff;
}

.quiz-option.is-correct {
  border-color: var(--green);
  background: #eefaf5;
}

.quiz-option.is-wrong {
  border-color: var(--red);
  background: #fff0f0;
}

.quiz-letter {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--field);
  font-weight: 850;
}

.quiz-result {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 8px;
  background: #f0f5fb;
  color: var(--ink);
  font-weight: 750;
}

.checkout-form,
.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.checkout-form label,
.auth-form label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.checkout-form input,
.auth-form input,
.auth-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.checkout-form input:focus,
.auth-form input:focus,
.auth-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 99, 183, 0.14);
  outline: none;
}

.auth-form textarea {
  min-height: 142px;
  padding: 12px;
  resize: vertical;
}

.button:disabled,
.checkout-form input:disabled,
.auth-form input:disabled,
.auth-form textarea:disabled {
  cursor: wait;
  opacity: 0.62;
}

.inline-button {
  width: fit-content;
  margin-top: 12px;
}

.trap-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 22px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.form-status.is-error,
[data-activation-summary].is-error {
  color: var(--red);
  font-weight: 750;
}

.form-status.is-success,
[data-activation-summary].is-success {
  color: var(--green);
  font-weight: 750;
}

.auth-page {
  min-height: 68vh;
  background: #fff;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.auth-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(24, 33, 47, 0.06);
}

.auth-panel.wide {
  max-width: 920px;
}

.legal-layout {
  display: grid;
  justify-items: start;
}

.legal-sections {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.legal-sections section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal-sections h2 {
  font-size: 1.35rem;
}

.auth-panel h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.account-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.account-item h2,
.protected-question h2 {
  font-size: 1.25rem;
}

.protected-questions {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.protected-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.protected-option.is-correct {
  border-color: var(--green);
  background: #eefaf5;
}

.seo-band {
  background: #edf4f8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer {
  padding: 38px 0;
  background: #111925;
  color: rgba(255, 255, 255, 0.78);
}

.footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
}

.footer-grid p {
  margin-bottom: 8px;
}

.fine-print {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 16px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .brand-logo {
    width: 184px;
  }

  .hero {
    min-height: 590px;
  }

  .hero-inner {
    padding: 58px 0 74px;
  }

  .hero-metrics,
  .grid.three,
  .grid.two,
  .page-hero-grid,
  .auth-grid,
  .split,
  .pricing-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .pricing-panel {
    position: static;
  }

  .account-head {
    display: grid;
  }
}

@media (max-width: 560px) {
  .nav,
  .container,
  .hero-inner {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    min-height: 640px;
  }

  h1 {
    font-size: 2.1rem;
    line-height: 1.07;
  }

  h2,
  .page-hero h1,
  .auth-panel h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-copy > p {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .nav-links .button {
    flex-basis: 100%;
    width: 100%;
  }

  .hero-metrics {
    margin-top: 28px;
  }

  .metric {
    min-height: auto;
  }
}
