:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #6b7280;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, #eef2ff, transparent 25%),
    radial-gradient(circle at 80% 0%, #cffafe, transparent 25%),
    var(--bg);
  color: var(--text);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card.full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.inline {
  flex-direction: row;
  align-items: center;
}

.field.inline input {
  flex: 1;
}

input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s ease;
}

button:active {
  transform: translateY(1px);
}

button.primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

button.secondary {
  background: #eef2ff;
  color: #312e81;
}

button.ghost {
  background: #f8fafc;
  color: #111827;
  border: 1px solid #e5e7eb;
}

button:hover {
  opacity: 0.97;
}

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.badge-soft {
  background: #eef2ff;
  color: #4338ca;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-weight: 600;
  font-size: 12px;
}

.notice {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: var(--text);
}

.notice-muted {
  color: var(--muted);
}

.notice-success {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #166534;
}

.notice-error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #b91c1c;
}

.notice-info {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.notice.hidden {
  display: none;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
}

.result-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.status-chip {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #e5e7eb;
  color: #374151;
}

.status-chip.complete {
  background: #dcfce7;
  color: #166534;
}

.note-card {
  border-left: 4px solid #6366f1;
  padding-left: 12px;
}

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

@media (max-width: 640px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .field.inline {
    flex-direction: column;
    align-items: stretch;
  }

  .inline {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ========================
   TRACKING PAGE
   ======================== */

.tracking-page {
  align-items: center;
}

.tracking-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 60px 20px 40px;
  width: 100%;
  max-width: 680px;
}

.tracking-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.tracking-input-wrap {
  display: flex;
  width: 100%;
  gap: 10px;
  margin-top: 8px;
}

.tracking-input {
  flex: 1;
  padding: 18px 22px;
  font-size: clamp(18px, 3vw, 22px);
  border-radius: 14px;
  border: 2px solid #d1d5db;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tracking-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  outline: none;
}

.tracking-btn {
  padding: 18px 28px;
  font-size: 17px;
  border-radius: 14px;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .tracking-input-wrap {
    flex-direction: column;
  }

  .tracking-btn {
    width: 100%;
  }
}

/* ========================
   CHECKMARK PROGRESS STEPS
   ======================== */

.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  padding: 6px 0;
}

.progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 42px;
  width: 2px;
  height: calc(100% - 10px);
  background: #e5e7eb;
  z-index: 0;
}

.progress-step.done:not(:last-child)::after {
  background: #22c55e;
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  background: #fff;
  color: transparent;
  z-index: 1;
  transition: border-color 0.2s, background 0.2s;
}

.progress-step.done .step-icon {
  border-color: #22c55e;
  background: #22c55e;
}

.step-label {
  font-size: 15px;
  color: var(--muted);
  padding: 10px 0;
  line-height: 1.4;
}

.progress-step.done .step-label {
  color: var(--text);
  font-weight: 500;
}
