:root {
  --paper: #f2f5f9;
  --ink: #0d1b2a;
  --muted: #5b6b7f;
  --line: #1d63d8;
  --tick: #0b9a72;
  --focus: #1d63d8;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a1422;
    --ink: #e6edf5;
    --muted: #8fa0b5;
    --line: #6aa3f5;
    --tick: #35c995;
    --focus: #6aa3f5;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  text-align: center;
}

.mark {
  width: 132px;
  height: 44px;
  overflow: visible;
  margin-bottom: 0.75rem;
}

.mark-line {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.85s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}

.mark-tick {
  fill: var(--tick);
  transform-origin: 122px 7px;
  transform: scale(0);
  animation: tick 0.24s cubic-bezier(0.3, 1.6, 0.5, 1) 0.8s forwards;
}

.brand {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.status {
  margin: 0;
  max-width: 28ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.continue {
  margin-top: 1.25rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  color: var(--line);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 0 0 1.5px currentColor;
  opacity: 0;
  visibility: hidden;
  animation: reveal 0.3s ease 2.5s forwards;
}

.continue:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes tick {
  to {
    transform: scale(1);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark-line {
    animation: none;
    stroke-dashoffset: 0;
  }

  .mark-tick {
    animation: none;
    transform: none;
  }

  .continue {
    animation-duration: 0.01s;
  }
}
