:root {
  --egzo-cobalt: #0739f4;
  --egzo-cobalt-hover: #0028ce;
  --egzo-ink: #111820;
  --egzo-muted: #4b5565;
  --egzo-paper: #f4f5f7;
  --egzo-line: #d9dee7;
  --egzo-header-height: 68px;
  --egzo-visible-header: var(--egzo-header-offset, var(--egzo-header-height));
  --egzo-header-motion: 320ms cubic-bezier(.25,.75,.25,1);
  --egzo-heading: Geist, "Instrument Sans", system-ui, sans-serif;
  --surface: var(--egzo-paper);
  --card: #fff;
  --ink: var(--egzo-ink);
  --muted: var(--egzo-muted);
  --line: var(--egzo-line);
  --forest: #1744cb;
  --forest-dark: #0d1933;
  --accent: var(--egzo-cobalt);
  --heading-font: var(--egzo-heading);
  font-family: "Instrument Sans", system-ui, sans-serif;
  scroll-padding-block-start: var(--egzo-visible-header);
}

:root.egzo-header-hidden {
  --egzo-visible-header: 0px;
}
@media (prefers-reduced-motion: reduce) {
  :root { --egzo-header-motion: 0ms; }
}
.header {
  position: sticky;
  inset-block-start: 0;
  z-index: 8;
  font-family: var(--egzo-heading);
  translate: 0 0;
  transition: translate var(--egzo-header-motion);
}
.egzo-header-hidden .header { translate: 0 -100%; }
.quiz-bar { top: var(--egzo-visible-header); transition: top var(--egzo-header-motion); }
.header .header-inner {
  display: grid;
  width: 100%;
  padding-inline: clamp(10px, 1.25vw, 24px);
  grid-template-columns: auto minmax(0,1fr) auto;
  min-height: var(--egzo-header-height);
  gap: clamp(14px, 2vw, 28px);
}
.header-menu { display: contents; }
.header .header-menu-toggle { display: none; }
.header .header-inner nav { justify-content: center; gap: clamp(10px, 1.75vw, 26px); }
.header nav a { color: var(--egzo-ink); white-space: nowrap; }
.header nav a:hover, .header nav a[aria-current] { color: var(--egzo-cobalt); }
.header nav .nav-brutal {
  --accent: #b82931;
  color: #a9222a;
  padding: 7px 9px;
  border-radius: 7px;
  background: #fcedee;
}
.header nav .nav-brutal:is(:hover,[aria-current]) { color: #961c24; background: #f8dcdf; }
.header nav .nav-brutal[aria-current]::after { inset-inline: 9px; inset-block-end: 3px; }
.header .header-action { display: inline-flex; }
.header-free-test { white-space: nowrap; }
.header .header-free-test-mobile { display: none; }
.header .header-language { inline-size: 44px; flex: none; }
.header-language select {
  inline-size: 100%;
  min-inline-size: 0;
  padding-inline: 5px;
}
.header-language select::picker(select) { min-inline-size: max-content; }
.header-language select::picker-icon { font-size: .72rem; }
.header-language selectedcontent { font-size: 0; gap: 0; }
.header-language .language-flag { inline-size: 16px; }
.header-language .language-flag-fallback { inset-inline-start: 5px; }
@supports not ((appearance: base-select) and selector(::picker(select))) {
  .header-language select { color: transparent; }
  .header-language option { color: var(--egzo-ink); }
}

#home {
  --landing-ink: var(--egzo-ink);
  --landing-paper: var(--egzo-paper);
  --landing-muted: var(--egzo-muted);
  --landing-line: var(--egzo-line);
  --landing-heading: var(--egzo-heading);
  --landing-blue: var(--egzo-cobalt);
  --landing-green-text: #204ac8;
  font-family: "Instrument Sans", system-ui, sans-serif;
}
#home > :is(.landing-paths, .home-exams, .landing-more, .home-prices, .home-install),
#home > :is(.home-review, .landing-brutal) > .wrap {
  width: min(100%, 1600px);
  padding-inline: clamp(18px, 3.3vw, 52px);
}
#home :focus-visible { outline-color: var(--egzo-cobalt); }
#home :is(.landing-paths, .home-exams, .landing-more, .home-prices) h2 {
  font-weight: 800;
  letter-spacing: -.064em;
  line-height: 1.02;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.5rem);
}
#home .landing-paths {
  padding-block: clamp(24px, 3vw, 46px) clamp(36px, 5vw, 78px);
  scroll-margin-top: 16px;
}
.landing-paths .landing-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
}
.egzo-index-link { color: #244bc4; font-weight: 700; font-size: .94rem; }
.landing-card-grid { gap: clamp(12px, 1.4vw, 23px); }
#home .landing-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: clamp(238px, 26vw, 390px);
  border: 0;
  border-radius: 12px;
  isolation: isolate;
  color: #fff;
  background: #10234e;
}
#home .landing-card-signs { background: #25262a; }
#home .landing-card-3d { background: #202a33; }
#home .landing-card img, #home .landing-card::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#home .landing-card::before {
  content: "";
  z-index: -1;
  background: linear-gradient(150deg, #050b20d9, #080c2130 55%), linear-gradient(0deg, #060d21ed, transparent 66%);
}
#home .landing-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: clamp(18px, 2.5vw, 34px); }
#home .landing-card h3 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.9rem); letter-spacing: -.075em; line-height: 1; max-width: 12ch; }
#home .landing-card p { color: #f1f4fa; margin-block-start: auto; }
#home .landing-card-link {
  min-height: 44px;
  gap: 8px;
  padding: 0;
  border: 0;
  color: #fff;
}
#home .landing-card-link::before { content: ""; position: absolute; inset: 0; }
#home .landing-card:has(:focus-visible) { outline: 3px solid var(--egzo-cobalt); outline-offset: 4px; }
#home .landing-card-link:focus-visible { outline: 2px solid #fff; }
.landing-quick-links { gap: 6px 16px; }
.landing-quick-links a { color: var(--egzo-muted); font-weight: 650; }

#home .home-exams {
  padding-block: clamp(24px, 3vw, 46px) clamp(20px, 3vw, 46px);
  scroll-margin-top: 16px;
}
#home #home-exams-title { font-size: clamp(2rem, 1.4rem + 2vw, 3.5rem); margin-block-end: .3em; }
.home-exam-featured, .home-exam-additional { gap: clamp(10px, 1.35vw, 19px); }
#home .home-exam-category {
  min-inline-size: 0;
  padding: clamp(12px, 2.3vw, 29px);
  border-color: #fff;
  border-radius: 18px;
  background: linear-gradient(165deg,#fff,#f6f8fd);
  box-shadow: inset 0 1px 0 white, 0 1px 5px #12273c15, 0 9px 24px #16295507;
}
#home .home-exam-category:hover { border-color: #a4b6f3; }
#home .home-exam-category :is(.category-icon, .category-art),
.workspace .category-exam-tile .category-art {
  place-self: center;
  inline-size: min(100%, 245px);
  block-size: auto;
  aspect-ratio: 2.25;
  object-fit: contain;
  object-position: center;
}
/* Lift the paper tone to white so the illustrations blend into either card. */
.category-art {
  filter: brightness(1.1);
  mix-blend-mode: multiply;
}
#home .home-exam-additional :is(.category-icon,.category-art) { max-inline-size: 178px; }
#home .home-exam-card-head { align-items: center; }
#home .home-exam-card-head :is(b, strong) { letter-spacing: -.04em; }
#home .home-exam-arrow { font-size: 1.25rem; }
#home .home-exam-more { border-block: 0; }
#home .home-exam-more > summary { padding-block: 12px; color: #244bc4; }

#home .landing-brutal {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: #fff;
  background: #121922;
  border-block-start: 2px solid #db4845;
}
#home .landing-brutal-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(72%,1500px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  clip-path: polygon(15% 0,100% 0,100% 100%,0 100%);
  filter: saturate(1.16) contrast(1.12);
  z-index: -3;
}
#home .landing-brutal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#121922 26%,#121922d9 48%,#12192224 78%), linear-gradient(0deg,#131720c4,transparent 58%);
}
#home .landing-brutal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle,#13182591 1px,transparent 1.4px) 0 0 / 5px 5px;
  mask-image: linear-gradient(125deg,transparent 38%,#000 80%);
}
#home .landing-brutal-inner {
  min-height: clamp(360px, 40vw, 550px);
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(0,.45fr);
  padding-block: clamp(36px, 6vw, 95px);
}
#home .landing-brutal-copy h2 { max-width: 13ch; font-size: clamp(3rem, 6.2vw, 6.6rem); letter-spacing: -.082em; line-height: .94; text-wrap: balance; }
#home .landing-brutal-copy h2 span {
  display: inline-block;
  color: #ff746b;
  text-shadow: .035em .045em #0c1120;
}
#home .landing-brutal-copy p { max-width: 37ch; color: #eef0f6; }
#home .landing-brutal-copy .egzo-section-label { color: #ff8a80; font-weight: 800; margin-block-end: 12px; }
#home .landing-brutal-goal {
  align-self: end;
  border: 1px solid #d34847;
  border-radius: 8px;
  padding: clamp(14px,2vw,32px);
  background: #25141be8;
  box-shadow: 6px 6px #080d16ad;
}
#home .landing-brutal-score, #home .landing-brutal-score span { color: #ff746b; text-shadow: .045em .048em #060a11; }
#home .landing-brutal-score { display: inline-block; transform: skew(-8deg); }
#home .landing-brutal-goal p { color: #fff; }

.brutal-frame { position: relative; }
.brutal-frame::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid #ff8d70;
  border-radius: inherit;
  box-shadow: 0 0 16px #ed423969, inset 0 0 12px #ed42394d;
  opacity: .34;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .brutal-frame.is-ember-lit::after { animation: brutal-heat 1.6s ease-in-out 3; }
  .brutal-frame.is-ember-lit::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: -16px 9px auto;
    height: 20px;
    background:
      radial-gradient(circle at 9% 80%,#ffb979 0 1px,transparent 3px),
      radial-gradient(circle at 32% 62%,#e85a51 0 1px,transparent 3px),
      radial-gradient(circle at 63% 90%,#ffb979 0 1.5px,transparent 3px),
      radial-gradient(circle at 88% 75%,#f56c55 0 1px,transparent 3px);
    pointer-events: none;
    animation: brutal-sparks 1.6s ease-out 3 both;
  }
  @keyframes brutal-heat {
    50% { opacity: 1; }
  }
  @keyframes brutal-sparks {
    0%,100% { opacity: 0; }
    25% { opacity: .9; }
    100% { transform: translate(7px,-10px); }
  }
}

#home .home-review { background: #e9eefb; }
#home .home-review h2 { font-weight: 780; letter-spacing: -.05em; }
#home .home-prices { padding-block: clamp(40px, 7vw, 94px); }
:is(#home, #workspace):has(.plan-grid) {
  --commerce-line: #dbe1eb;
  --commerce-ink: var(--egzo-ink);
  --commerce-muted: var(--egzo-muted);
  --commerce-green: #1744cb;
  --commerce-tint: #edf1ff;
  --commerce-heading: var(--egzo-heading);
}
:is(#home, #workspace) .plan-grid { gap: 10px; border: 0; }
:is(#home, #workspace) .plan-grid .plan-card {
  background: linear-gradient(156deg,#fff,#f6f8fc);
  padding: clamp(13px, 2vw, 26px);
  border: 1px solid var(--commerce-line);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 #fff, 0 6px 18px #1a2f590b;
}
:is(#home, #workspace) .plan-grid .plan-card[data-plan="month"] { background: #ebf0ff; border-color: #aebff8; }
:is(#home, #workspace) .plan-grid .plan-card .price { letter-spacing: -.065em; }
#home .home-access-options > div, #home .home-specialty-grid a, #home .home-install-card { background: #fff; border-color: var(--egzo-line); }
#home .home-specialty-grid a {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px 10px 14px;
  border-radius: 12px;
}
#home .home-specialty-grid a:hover { border-color: #a4b6f3; background: #edf1ff; }
#home .home-specialty-grid .training-art { grid-column: 1 / -1; }
#home .home-specialty-grid a > strong { padding-inline-start: 3px; }
#home .home-specialty-grid a > span { color: var(--egzo-cobalt); padding-inline-end: 3px; }
#home .home-access-options > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-inline-size: 0;
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid var(--egzo-line);
}
#home .home-access-options ul { margin: 0; }
#home .home-access-options footer { margin-block-start: auto; padding-block-start: 4px; }
#home .home-install { padding-block-end: clamp(32px, 6vw, 78px); }

.workspace > .page-heading h1,
.workspace:has(> :is(.plan-grid,.purchase-layout,.account-detail)) > .page-heading h1 {
  font-family: var(--egzo-heading);
  font-weight: 800;
  letter-spacing: -.065em;
}
.workspace :is(.quiz,.exam-results,.archive-review) {
  --exam-paper: var(--egzo-paper);
  --exam-ink: var(--egzo-ink);
  --exam-muted: var(--egzo-muted);
  --exam-line: var(--egzo-line);
  --exam-heading: var(--egzo-heading);
  font-family: "Instrument Sans", system-ui, sans-serif;
}
.workspace :is(.quiz, .exam-results) :is(.quiz-bar, .result-top) { border-color: var(--egzo-line); }
/* Shared alignment for the illustrated test directories. */
.training-art {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #e7edf6;
}
.workspace :is(.mode-grid, .exam-selection-grid, .study-topic-grid) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.45vw, 22px);
}
@media (max-width: 900px) {
  .workspace :is(.mode-grid, .exam-selection-grid, .study-topic-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 580px) {
  .workspace :is(.mode-grid, .exam-selection-grid, .study-topic-grid) {
    grid-template-columns: minmax(0, 1fr);
  }
}
.workspace :is(.training-tile, .exam-selection-grid > .tile, .study-topic-grid > .topic-card) {
  min-inline-size: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: initial;
  align-items: start;
  gap: 10px;
  padding: clamp(14px, 1.65vw, 22px);
  border-radius: 12px;
}
@supports (grid-template-rows: subgrid) {
  .workspace :is(.training-tile, .exam-selection-grid > .tile, .study-topic-grid > .topic-card) {
    grid-row: span 4;
    grid-template-rows: subgrid;
  }
}
.workspace :is(.training-tile, .exam-selection-grid > .tile) > header { grid-row: 2; }
.workspace :is(.training-tile, .exam-selection-grid > .tile, .study-topic-grid > .topic-card) > footer { grid-row: 4; }
.workspace :is(.training-tile, .exam-selection-grid > .tile) header .tile-meta { margin-block-end: 4px; }
.workspace .training-tile h3 { font-family: var(--egzo-heading); font-weight: 800; letter-spacing: -.04em; }
.workspace .training-tile { background: #fff; border-color: var(--egzo-line); }
.workspace .training-tile.primary-tile { background: #ebf0ff; border-color: #aebff8; }
.workspace .brutal-exam-tile .tile-meta { color: #ffc0b9; }
.workspace .study-topics summary { padding-block: 6px; }
.workspace .study-topic-grid .training-art { aspect-ratio: 2; }
.workspace .study-topic-grid h2 { font-size: 1.18rem; }
.training-actions, .study-topic-grid .topic-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.training-actions .button { margin-block-start: 0; }
.training-actions .start-status { flex-basis: 100%; }
.training-actions .start-status:empty { display: none; }
.training-actions .button, .study-topic-grid .topic-actions .button { max-inline-size: 100%; white-space: normal; }

.workspace .brutal-feature {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(370px, 40vw, 540px);
  padding: clamp(23px, 5vw, 68px);
  margin-block-end: 16px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
}
.brutal-feature > img,
.brutal-feature::before { position: absolute; inset: 0; height: 100%; width: 100%; }
.brutal-feature > img { object-fit: cover; object-position: 57% center; z-index: -2; }
.brutal-feature::before { content: ""; z-index: -1; background: linear-gradient(90deg,#111827f5 23%,#111827cb 50%,#11182729); }
.brutal-feature-intro { display: grid; gap: 12px; justify-items: start; }
.brutal-feature-intro h1 { max-width: 12ch; font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; letter-spacing: -.085em; line-height: .93; text-wrap: balance; }
.brutal-feature-intro p { max-width: 36ch; color: #edf1fa; }
.brutal-feature-intro .egzo-section-label { color: #ff837a; font-weight: 800; }
.brutal-feature-intro .button { color: #111827; background: #fff; border-color: #fff; }
.brutal-feature-intro .button:hover { background: #ff837a; border-color: #ff837a; }
.brutal-feature-intro :focus-visible { outline-color: #ff837a; }
.footer { font-family: "Instrument Sans", system-ui, sans-serif; }

@media (max-width: 1180px) {
  :root { --egzo-header-height: 100px; }
  .header .header-inner {
    grid-template-columns: auto minmax(0,1fr);
    grid-template-rows: minmax(52px,auto) minmax(42px,auto);
    gap: 0 8px;
    padding-block: 3px;
  }
  .header .header-inner nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 0 clamp(6px, 2.2vw, 18px);
  }
  .header nav a { padding-block: 10px; font-size: .8rem; }
  .header .header-tools { grid-column: 2; grid-row: 1; gap: 6px; margin-inline-start: 0; }
  .header .brand img { width: clamp(76px, 21vw, 120px); }
}
@media (max-width: 750px) {
  #home .landing-brutal-inner { grid-template-columns: 1fr; }
  #home .landing-brutal-art { width: 100%; object-position: 58% center; clip-path: none; }
  #home .landing-brutal::before { background: linear-gradient(90deg,#18151df5,#18151d82 64%,#18151d5c),linear-gradient(0deg,#18151de0,transparent 55%); }
  #home .landing-brutal-goal { width: min(100%,28ch); }
}
@media (max-width: 680px) {
  :root { --egzo-header-height: 56px; }
  :root.egzo-header-hidden { --egzo-visible-header: var(--egzo-header-offset, var(--egzo-header-height)); }
  .egzo-header-hidden .header { translate: none; }
  .header .header-inner {
    grid-template: auto / minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr);
    gap: clamp(5px, 1.5vw, 8px);
    padding: 5px clamp(8px, 3vw, 12px);
  }
  .header .brand { max-inline-size: 100%; justify-self: start; }
  .header .brand img { width: clamp(72px, 23vw, 115px); max-inline-size: 100%; }
  .header .header-free-test-mobile {
    display: inline-flex;
    justify-self: center;
    min-block-size: 44px;
    max-inline-size: min(47vw, 13.5rem);
    padding: .25rem clamp(.5rem, 2.4vw, .75rem);
    font-size: clamp(.75rem, .64rem + .55vw, .875rem);
    line-height: 1.12;
    text-align: center;
    text-wrap: balance;
    white-space: normal;
  }
  .header .header-menu-toggle {
    display: grid;
    place-items: center;
    justify-self: end;
    inline-size: 44px;
    padding: 0;
  }
  .header-menu-toggle span {
    inline-size: 19px;
    block-size: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -6px currentColor, 0 6px currentColor;
  }
  .header-menu {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-block-size: calc(100dvh - var(--egzo-header-height));
    overflow: auto;
    overscroll-behavior: contain;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border-block-end: 1px solid var(--egzo-line);
    box-shadow: 0 10px 20px #11182022;
  }
  .header-menu-toggle[aria-expanded="true"] + .header-menu { display: grid; }
  .header nav .header-free-test { display: none; }
  .header .header-inner nav { display: grid; justify-content: stretch; gap: 0; }
  .header nav a { padding: 10px 9px; font-size: .95rem; min-block-size: 44px; }
  .header .header-tools { flex-wrap: wrap; }
  .header .header-action { min-block-size: 44px; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  #home .landing-card img { transition: transform .45s cubic-bezier(.2,.65,.35,1); }
  #home .landing-card:hover img { transform: scale(1.045); }
}
