:root {
  --ink: #101936;
  --ink-deep: #070d22;
  --ink-soft: #5a6680;
  --paper: #f2f5f9;
  --white: #ffffff;
  --accent: #38dfbd;
  --accent-dark: #087864;
  --accent-pale: #e2faf5;
  --line: #dbe3ef;
  --orange: #ff7d57;
  --orange-pale: #fff0ea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 7% 2%, rgba(56, 223, 189, .13), transparent 25rem),
    radial-gradient(circle at 93% 42%, rgba(67, 92, 200, .08), transparent 32rem),
    var(--paper);
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.topbar,
main,
footer {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  min-height: 66px;
  margin-top: 14px;
  padding: 0 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(207, 218, 232, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 40px rgba(16, 25, 54, .08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-size: .92rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-decoration: none;
}

.brand b { color: var(--accent-dark); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--accent);
  font-size: .76rem;
  letter-spacing: -.03em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav a {
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.topnav a:hover {
  background: #eef3f8;
  color: var(--ink);
}

.topnav .topnav-alert {
  background: var(--orange-pale);
  color: #993b23;
}

.topnav .topnav-alert:hover {
  background: #ffe1d6;
  color: #792b17;
}

main { padding: 34px 0 84px; }

.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr);
  gap: clamp(44px, 6vw, 86px);
  align-items: center;
  padding: clamp(38px, 6vw, 78px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 14%, rgba(56, 223, 189, .22), transparent 21rem),
    radial-gradient(circle at 5% 104%, rgba(69, 91, 197, .27), transparent 30rem),
    linear-gradient(135deg, #111d4b 0%, var(--ink-deep) 68%);
  color: var(--white);
  box-shadow: 0 30px 90px rgba(10, 18, 46, .22);
}

.intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -108px;
  bottom: -135px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(56, 223, 189, .2);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(56, 223, 189, .035),
    0 0 0 92px rgba(56, 223, 189, .025);
  pointer-events: none;
}

.copy,
.quick-start { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.intro .eyebrow { color: var(--accent); }

h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(3rem, 5.5vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.058em;
  text-wrap: balance;
}

.lead {
  max-width: 650px;
  margin: 28px 0 34px;
  color: #cbd4e7;
  font-size: clamp(1.04rem, 1.6vw, 1.2rem);
  line-height: 1.68;
}

.download-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 22px 54px rgba(2, 7, 25, .28);
  scroll-margin-top: 104px;
}

.file-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--accent-pale);
  color: var(--accent-dark);
}

.file-icon svg,
.download-button svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-copy h2 {
  margin: 0 0 5px;
  font-size: 1.03rem;
  letter-spacing: -.01em;
}

.file-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .8rem;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 13px;
  background: var(--accent);
  color: var(--ink-deep);
  font-size: .91rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.download-button:not([aria-disabled="true"]):hover {
  transform: translateY(-2px);
  background: #69e9ce;
  box-shadow: 0 10px 24px rgba(10, 154, 128, .24);
}

.download-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .48;
}

.availability {
  grid-column: 2 / -1;
  margin: -4px 0 0;
  color: var(--ink-soft);
  font-size: .75rem;
}

.availability.ready { color: var(--accent-dark); }
.availability.missing { color: #a33e25; }

.quick-start {
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 26px;
  background: rgba(255, 255, 255, .075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
}

.quick-start::after {
  content: "1A";
  position: absolute;
  z-index: -1;
  right: -18px;
  top: -48px;
  color: rgba(56, 223, 189, .09);
  font-size: 9rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.aside-heading span {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.aside-heading h2 {
  margin: 8px 0 24px;
  max-width: 330px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.quick-start ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-start li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.step-number {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.quick-start strong { font-size: 1rem; }

.quick-start li p {
  margin: 5px 0 0;
  color: #c4cee2;
  font-size: .9rem;
  line-height: 1.5;
}

code {
  padding: .08em .34em;
  border-radius: 5px;
  background: rgba(255, 255, 255, .11);
  color: inherit;
  font: .88em ui-monospace, SFMono-Regular, Consolas, monospace;
}

.tip {
  display: flex;
  gap: 10px;
  margin: 20px 0 0;
  padding: 14px;
  border: 1px solid rgba(56, 223, 189, .24);
  border-radius: 13px;
  background: rgba(56, 223, 189, .07);
  color: #d7e1ef;
  font-size: .8rem;
  line-height: 1.5;
}

.tip > span:first-child {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 850;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.guide {
  margin-top: clamp(92px, 11vw, 148px);
  scroll-margin-top: 104px;
}

.guide-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  column-gap: clamp(44px, 8vw, 110px);
  align-items: end;
  margin-bottom: 46px;
  padding: 0 clamp(0px, 3vw, 34px);
}

.guide-heading .eyebrow { grid-column: 1 / -1; }

.guide-heading h2 {
  max-width: 630px;
  margin: 0;
  font-size: clamp(2.35rem, 4.2vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.guide-heading > p:last-child {
  max-width: 580px;
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.72;
}

.guide-grid {
  display: grid;
  gap: 24px;
}

.guide-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 54px minmax(0, .92fr) minmax(390px, 1.08fr);
  grid-template-areas: "number content media";
  gap: 24px;
  align-items: start;
  padding: clamp(24px, 3.5vw, 42px);
  border: 1px solid rgba(213, 223, 236, .9);
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 55px rgba(16, 25, 54, .07);
}

.guide-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(56, 223, 189, 0) 70%);
}

.guide-card--media-left {
  grid-template-columns: minmax(390px, 1.08fr) 54px minmax(0, .92fr);
  grid-template-areas: "media number content";
}

.guide-card > div { grid-area: content; }

.guide-number {
  grid-area: number;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: inset 0 0 0 1px rgba(8, 120, 100, .08);
}

.guide-card h3,
.keep-safe h3 {
  margin: 3px 0 20px;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  line-height: 1.17;
  letter-spacing: -.032em;
}

.instruction-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding-left: 1.35rem;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.6;
}

.instruction-list li {
  padding-left: 7px;
}

.instruction-list li::marker {
  color: var(--accent-dark);
  font-weight: 900;
}

.guide-card code {
  background: #edf1f7;
  color: var(--ink);
}

.guide-shot {
  grid-area: media;
  overflow: hidden;
  align-self: center;
  margin: 0;
  border: 1px solid #c9d2df;
  border-radius: 20px;
  background: #111;
  box-shadow: 0 18px 38px rgba(10, 17, 39, .17);
}

.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-shot-dialog img {
  max-height: 440px;
  object-fit: contain;
}

.guide-shot figcaption {
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-size: .8rem;
  line-height: 1.45;
}

.guide-shot figcaption code { font-size: .9em; }

.warning,
.student-note {
  margin: 20px 0 0;
  padding: 14px 15px;
  border-radius: 13px;
  font-size: .9rem;
  line-height: 1.58;
}

.warning {
  border: 1px solid #ffd1c3;
  border-left: 4px solid var(--orange);
  background: var(--orange-pale);
  color: #7f321d;
}

.student-note {
  border: 1px solid #dce6f8;
  background: #f2f6ff;
  color: #31456d;
}

.keep-safe {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 32px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 125, 87, .17), transparent 28rem),
    linear-gradient(135deg, #121c47, var(--ink-deep));
  color: var(--white);
  box-shadow: 0 26px 70px rgba(10, 18, 45, .18);
  scroll-margin-top: 104px;
}

.keep-safe::after {
  content: "J:";
  position: absolute;
  right: 30px;
  top: -58px;
  color: rgba(255, 125, 87, .07);
  font-size: 12rem;
  font-weight: 950;
  pointer-events: none;
}

.keep-safe > * { position: relative; z-index: 1; }

.keep-safe-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--orange);
  color: var(--ink-deep);
  font-size: 1.35rem;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(255, 125, 87, .23);
}

.keep-safe h3 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

.keep-safe p {
  max-width: 920px;
  margin: 0;
  color: #cbd4e6;
  font-size: .98rem;
  line-height: 1.67;
}

.keep-safe-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: none;
  margin: 28px 0 24px;
  padding: 0;
  list-style: none;
  color: #e9edf6;
  font-size: .88rem;
  line-height: 1.52;
}

.keep-safe-steps li {
  min-height: 154px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .055);
}

.exam-step-number {
  display: block;
  margin-bottom: 25px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.keep-safe code {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
}

.keep-safe .keep-safe-reminder {
  max-width: none;
  padding: 15px 17px;
  border: 1px solid rgba(255, 125, 87, .44);
  border-radius: 13px;
  background: rgba(255, 125, 87, .1);
  color: #fff5f1;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 2px 38px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .84rem;
}

footer p { margin: 0; }

footer a {
  font-weight: 800;
  text-underline-offset: 3px;
}

@media (max-width: 1020px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .copy { max-width: 820px; }
  .quick-start { max-width: 760px; }

  .guide-heading {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  .guide-heading > p:last-child { max-width: 700px; }

  .guide-card,
  .guide-card--media-left {
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-areas:
      "number content"
      "media media";
  }

  .guide-shot {
    width: min(100%, 820px);
    margin: 8px auto 0;
  }

  .keep-safe-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keep-safe-steps li { min-height: 132px; }
}

@media (max-width: 700px) {
  .topbar,
  main,
  footer {
    width: min(100% - 24px, 1240px);
  }

  .topbar {
    top: 9px;
    min-height: 60px;
    margin-top: 9px;
  }

  .topnav a:not(.topnav-alert) { display: none; }
  main { padding-top: 22px; }

  .intro {
    padding: 30px 24px;
    border-radius: 26px;
  }

  h1 { font-size: clamp(2.55rem, 12.5vw, 4.2rem); }
  .lead { margin-top: 22px; }

  .download-card {
    grid-template-columns: auto 1fr;
    scroll-margin-top: 88px;
  }

  .download-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .availability {
    grid-column: 1 / -1;
    text-align: center;
  }

  .quick-start { padding: 26px 22px; }
  .guide { margin-top: 82px; scroll-margin-top: 88px; }
  .guide-heading { padding-inline: 4px; }

  .guide-heading > p:last-child { padding-left: 16px; }

  .guide-card,
  .guide-card--media-left {
    grid-template-columns: 1fr;
    grid-template-areas:
      "number"
      "content"
      "media";
    gap: 18px;
    padding: 24px;
    border-radius: 22px;
  }

  .guide-card h3 { margin-top: 0; }

  .keep-safe {
    grid-template-columns: 1fr;
    border-radius: 24px;
    scroll-margin-top: 88px;
  }

  .keep-safe-steps { grid-template-columns: 1fr; }
  .keep-safe-steps li { min-height: 0; }
  .exam-step-number { margin-bottom: 12px; }

  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
