:root {
  --ink: #1b1f24;
  --ink-soft: #5a6472;
  --line: #e3e6ea;
  --surface: #ffffff;
  --canvas: #f4f5f7;
  --accent: #24303d;
  --accent-soft: #eef1f4;
  --done: #2f7a4f;
  --done-soft: #e7f4ec;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 15px;
  color: var(--ink-soft);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 2px rgba(16, 20, 24, 0.04);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.gate h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.gate-hint {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.gate-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gate-form input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.gate-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.gate-form button {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface);
  cursor: pointer;
}

.gate-form button:hover {
  opacity: 0.92;
}

.gate-error {
  margin: 14px 0 0;
  font-size: 13px;
  color: #b3261e;
}

@media (prefers-color-scheme: dark) {
  .gate-error {
    color: #ff8a80;
  }
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.summary h1 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.25;
}

.eta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  padding: 16px 20px;
  background: var(--done-soft);
  border: 1px solid var(--done);
  border-radius: 10px;
}

.eta-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--done);
}

.eta-value {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px 24px;
  margin: 0 0 28px;
  padding: 20px;
  background: var(--accent-soft);
  border-radius: 10px;
}

.meta div {
  min-width: 0;
}

.meta dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.progress-track {
  position: relative;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  margin: 8px 4px 28px;
}

.progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--done);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.steps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 0 24px;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.steps li:last-child::before {
  display: none;
}

.step-dot {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step-dot svg {
  width: 12px;
  height: 12px;
  display: none;
}

.step-body {
  padding-top: 2px;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.step-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.steps li.done .step-dot {
  border-color: var(--done);
  background: var(--done);
}

.steps li.done .step-dot svg {
  display: block;
}

.steps li.done::before {
  background: var(--done);
}

.steps li.done .step-title {
  color: var(--ink);
}

.steps li.current .step-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.steps li.current .step-title {
  color: var(--ink);
}

.steps li.current .step-title::after {
  content: "In progress";
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}

.note {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
}

.note p {
  margin: 0;
}

.carrier {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--done-soft);
  border-radius: 10px;
  font-size: 14px;
}

.carrier p {
  margin: 0;
}

.carrier a {
  color: var(--done);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.carrier a:hover {
  text-decoration: underline;
}

.footer {
  margin-top: 24px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f4;
    --ink-soft: #9aa4b2;
    --line: #2a323c;
    --surface: #1a1f26;
    --canvas: #12161b;
    --accent: #e3e7eb;
    --accent-soft: #232a33;
    --done: #4fb377;
    --done-soft: #17251d;
  }

  .brand-mark {
    color: #12161b;
  }

  .step-dot svg path {
    stroke: #12161b;
  }
}
