:root {
  color-scheme: light;
  --paper: #f2efe7;
  --paper-deep: #e8e3d9;
  --ink: #11110f;
  --ink-soft: #292925;
  --muted: #6f6b63;
  --line: rgba(17, 17, 15, .17);
  --line-dark: rgba(255, 255, 255, .18);
  --cobalt: #1646ff;
  --cobalt-dark: #0c2fbf;
  --danger: #b3261e;
  --success: #1e6d46;
  --sans: "Inter", Arial, sans-serif;
  --mono: "DM Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.checkpoint {
  min-height: 100svh;
  display: grid;
  grid-template: 82px minmax(0, 1fr) / minmax(390px, .82fr) minmax(520px, 1.18fr);
  overflow: hidden;
  background: var(--paper);
}

.checkpoint-bar {
  position: relative;
  z-index: 4;
  grid-column: 1 / -1;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.checkpoint-brand {
  min-width: clamp(390px, 41%, 700px);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 clamp(24px, 3vw, 52px);
  border-right: 1px solid var(--ink);
}

.checkpoint-monogram {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  letter-spacing: -.06em;
}

.checkpoint-brand > span:last-child { display: grid; gap: 6px; }
.checkpoint-brand strong { font-size: 12px; letter-spacing: .13em; }
.checkpoint-brand small { color: var(--muted); font: 500 8px/1 var(--mono); letter-spacing: .12em; }

.checkpoint-bar-meta {
  display: flex;
  align-items: stretch;
  margin-left: auto;
  font: 500 9px/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.checkpoint-bar-meta > span,
.checkpoint-bar-meta > a { display: flex; align-items: center; gap: 9px; padding: 0 clamp(20px, 2.5vw, 42px); }
.checkpoint-bar-meta > span { color: var(--muted); }
.checkpoint-bar-meta > a { border-left: 1px solid var(--ink); background: var(--ink); color: #fff; transition: background .2s; }
.checkpoint-bar-meta > a:hover { background: var(--cobalt); }
.checkpoint-bar-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); }
.checkpoint-bar-meta b { color: #9bb2ff; font-size: 15px; }

.checkpoint-index {
  position: relative;
  min-height: calc(100svh - 82px);
  overflow: hidden;
  padding: clamp(32px, 4vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink);
  color: #fff;
}

.checkpoint-index::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 72px 72px;
}

.checkpoint-index::after {
  content: "";
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  right: -13%;
  top: 13%;
  border: clamp(28px, 4vw, 68px) solid var(--cobalt);
  border-radius: 50%;
}

.index-code,
.index-title,
.security-facts { position: relative; z-index: 2; }

.index-code { display: flex; gap: 10px; color: #a9a9a2; font: 500 9px/1 var(--mono); letter-spacing: .1em; }
.index-code b { color: var(--cobalt); }

.index-title { margin-top: auto; margin-bottom: auto; }
.index-title p { margin: 0 0 24px; color: #a9a9a2; font: 500 9px/1 var(--mono); letter-spacing: .14em; }
.index-title h1 { margin: 0; font-size: clamp(54px, 5.6vw, 96px); line-height: .91; letter-spacing: -.075em; font-weight: 600; }

.index-number {
  position: absolute;
  z-index: 1;
  right: -1.5vw;
  bottom: -4vw;
  display: flex;
  color: rgba(255,255,255,.055);
  font-size: clamp(180px, 28vw, 470px);
  font-weight: 700;
  line-height: .7;
  letter-spacing: -.14em;
  user-select: none;
}

.security-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--line-dark);
}

.security-facts div { min-width: 0; padding: 20px 16px 0 0; border-right: 1px solid var(--line-dark); }
.security-facts div + div { padding-left: 16px; }
.security-facts div:last-child { border-right: 0; }
.security-facts dt { color: #85857f; font: 500 8px/1 var(--mono); letter-spacing: .1em; }
.security-facts dd { margin: 9px 0 0; color: #e7e7df; font-size: 10px; line-height: 1.4; }

.checkpoint-panel {
  position: relative;
  min-height: calc(100svh - 82px);
  overflow-y: auto;
  background-color: var(--paper);
  background-image: linear-gradient(90deg, transparent calc(100% - 1px), var(--line) calc(100% - 1px));
  background-size: clamp(90px, 9vw, 150px) 100%;
}

.panel-inner {
  width: min(100%, 650px);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 100px) clamp(34px, 6vw, 88px) 36px;
  display: flex;
  flex-direction: column;
}

.stage-meter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 clamp(56px, 9vh, 100px);
  padding: 0;
  list-style: none;
}

.stage-meter li {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  padding: 15px 0;
  border-bottom: 2px solid var(--line);
  color: #8a857d;
  font: 500 9px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stage-meter li::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--cobalt); transition: right .38s cubic-bezier(.2,.8,.2,1); }
.stage-meter li.is-active, .stage-meter li.is-complete { color: var(--ink); }
.stage-meter li.is-active::after, .stage-meter li.is-complete::after { right: 0; }
.stage-meter li span { color: var(--cobalt); }

.stage-heading > span { color: var(--cobalt); font: 500 9px/1 var(--mono); letter-spacing: .12em; }
.stage-heading h2 { max-width: 530px; margin: 18px 0 0; font-size: clamp(39px, 4.3vw, 62px); line-height: .98; letter-spacing: -.06em; font-weight: 600; }
.stage-heading p { max-width: 450px; margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.stage-heading p strong { color: var(--ink); font-weight: 600; }

.auth-notice {
  display: grid;
  grid-template-columns: 42px 1fr;
  margin: 0 0 27px;
  border: 1px solid currentColor;
  background: rgba(255,255,255,.3);
}
.auth-notice > span { display: grid; place-items: center; border-right: 1px solid currentColor; font: 500 13px/1 var(--mono); }
.auth-notice > p, .auth-notice > div { margin: 0; padding: 12px 14px; font-size: 11px; line-height: 1.5; }
.auth-notice p { margin: 2px 0 0; }
.auth-notice-success { color: var(--success); }
.auth-notice-error { color: var(--danger); }

.auth-stage { animation: stageIn .4s cubic-bezier(.2,.8,.2,1) both; }
.js .auth-stage[hidden] { display: none; }
.no-js [data-auth-continue], .no-js .identity-summary { display: none; }
.no-js .auth-stage + .auth-stage { margin-top: 60px; }

.auth-field { display: block; margin-top: 42px; }
.auth-field > span:first-child { display: block; margin-bottom: 11px; font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.auth-field input {
  width: 100%;
  height: 67px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  outline: 0;
  background: rgba(255,255,255,.4);
  color: var(--ink);
  font-size: 17px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-field input:hover { background: rgba(255,255,255,.68); }
.auth-field input:focus { border-color: var(--cobalt); box-shadow: inset 4px 0 0 var(--cobalt); background: #fff; }
.auth-field input[aria-invalid="true"] { border-color: var(--danger); }
.auth-field > small { display: block; margin-top: 10px; color: var(--muted); font: 400 9px/1.55 var(--mono); }

.password-control { position: relative; display: block; }
.password-control input { padding-right: 87px; }
.password-control button {
  position: absolute;
  top: 50%;
  right: 10px;
  min-width: 64px;
  height: 43px;
  transform: translateY(-50%);
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 500 9px/1 var(--mono);
  text-transform: uppercase;
}
.password-control button:hover, .password-control button:focus-visible { border-color: var(--cobalt); color: var(--cobalt); outline: 0; }

.identity-summary {
  width: 100%;
  min-height: 64px;
  margin-top: 30px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  color: var(--ink);
  text-align: left;
}
.identity-summary > span { min-width: 0; display: grid; gap: 7px; }
.identity-summary small { color: var(--muted); font: 500 8px/1 var(--mono); letter-spacing: .08em; }
.identity-summary strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.identity-summary > b { color: var(--cobalt); font: 500 9px/1 var(--mono); text-transform: uppercase; }
.identity-summary:hover, .identity-summary:focus-visible { border-color: var(--cobalt); outline: 0; }

.auth-action {
  width: 100%;
  min-height: 78px;
  margin-top: 38px;
  padding: 0 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-align: left;
  transition: background .2s, border-color .2s, transform .2s;
}
.auth-action:hover { background: var(--cobalt); border-color: var(--cobalt); transform: translateY(-2px); }
.auth-action:focus-visible { outline: 3px solid rgba(22,70,255,.28); outline-offset: 3px; }
.auth-action > span { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
.auth-action small { color: #a9a9a2; font: 500 8px/1 var(--mono); letter-spacing: .09em; }
.auth-action:hover small { color: #cad5ff; }
.auth-action > b { color: #8fa8ff; font: 400 25px/1 var(--mono); }
.auth-action-submit { background: var(--cobalt); border-color: var(--cobalt); }
.auth-action-submit:hover { background: var(--cobalt-dark); border-color: var(--cobalt-dark); }

.panel-foot {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: auto;
  padding-top: clamp(45px, 9vh, 100px);
  color: var(--muted);
  font: 400 8px/1.55 var(--mono);
}
.panel-foot p { max-width: 330px; margin: 0; }
.panel-foot span { white-space: nowrap; color: var(--cobalt); }

@keyframes stageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
  .checkpoint { grid-template: 74px auto minmax(620px, 1fr) / 1fr; overflow: visible; }
  .checkpoint-bar { grid-row: 1; }
  .checkpoint-brand { min-width: 0; border-right: 0; }
  .checkpoint-index { grid-row: 2; min-height: 400px; padding: 38px; }
  .checkpoint-index::after { width: 240px; right: -55px; top: -55px; border-width: 40px; }
  .index-title { margin: 65px 0; }
  .index-title h1 { font-size: clamp(54px, 10vw, 82px); }
  .index-number { right: 0; bottom: -55px; font-size: 260px; }
  .checkpoint-panel { grid-row: 3; min-height: 620px; overflow: visible; }
  .panel-inner { width: min(100%, 720px); padding-top: 70px; }
}

@media (max-width: 650px) {
  .checkpoint { grid-template-rows: 66px auto minmax(600px, 1fr); }
  .checkpoint-brand { padding: 0 16px; }
  .checkpoint-brand strong { font-size: 10px; }
  .checkpoint-brand small { display: none; }
  .checkpoint-monogram { width: 34px; height: 34px; }
  .checkpoint-bar-meta > span { display: none; }
  .checkpoint-bar-meta > a { padding: 0 16px; font-size: 0; }
  .checkpoint-bar-meta > a b { font-size: 18px; }
  .checkpoint-index { min-height: 385px; padding: 27px 20px; }
  .index-title { margin: 57px 0; }
  .index-title h1 { font-size: clamp(47px, 15vw, 66px); }
  .security-facts { grid-template-columns: 1fr; }
  .security-facts div, .security-facts div + div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .security-facts div:last-child { border-bottom: 0; }
  .security-facts dd { margin: 0; text-align: right; }
  .index-number { bottom: 40px; font-size: 170px; }
  .panel-inner { padding: 45px 20px 28px; }
  .stage-meter { margin-bottom: 52px; }
  .stage-heading h2 { font-size: 42px; }
  .auth-field { margin-top: 34px; }
  .auth-field input { height: 61px; }
  .auth-action { min-height: 70px; }
  .panel-foot { display: grid; gap: 13px; padding-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
