/* ============================================================
   ORDER TRACKER — arronjohnson.com/track
   Light-editorial brand · single-panel flow
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f5f0e8;
  --ink:       #1b1b1b;
  --ink-2:     #2e2e2e;
  --muted:     #6f6a60;
  --gold:      #c9a227;
  --gold-deep: #a8892e;
  --gold-soft: rgba(201, 162, 39, 0.14);
  --line:      rgba(27, 27, 27, 0.12);

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat', var(--font-sans);

  --ease: 240ms cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
code {
  font-size: 15px;
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ---------- TYPE ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.display {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  font-size: clamp(34px, 5vw, 52px);
}
.display-sm { font-size: clamp(28px, 4vw, 40px); }
.lede { color: var(--muted); font-size: 19px; margin: 16px 0 32px; }
.prose p { margin-bottom: 16px; color: var(--ink-2); }
.prose a { color: var(--gold-deep); }

/* ---------- LAYOUT ---------- */
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
}
.hdr-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .16em;
  text-decoration: none;
  color: var(--ink);
}
.wrap {
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 28px 64px;
}
.panel { animation: fadeUp 320ms cubic-bezier(.4,0,.2,1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ftr {
  background: var(--ink);
  color: rgba(245,240,232,.6);
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
}
.ftr a { color: var(--gold); text-decoration: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  transition: var(--ease);
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-sm { font-size: 11px; padding: 10px 18px; }
.btn-lg { font-size: 13px; padding: 16px 28px; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  font-size: 12px;
  padding: 12px 22px;
}
.btn-outline:hover { background: var(--gold-soft); }
.btn-arrow { transition: transform var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.text-link {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 2px 0;
  margin-top: 28px;
  cursor: pointer;
  transition: var(--ease);
}
.text-link:hover { color: var(--gold-deep); border-color: var(--gold); }

/* ---------- FORM ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  transition: var(--ease);
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field input::placeholder { color: var(--muted); opacity: .7; }
#trackForm .btn { margin-top: 8px; }

/* ---------- PROGRESS THEATER ---------- */
.progress-steps { list-style: none; margin-top: 32px; }
.progress-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font-size: 17px;
  color: var(--muted);
  opacity: .35;
  transition: opacity var(--ease), color var(--ease);
}
.progress-steps li.active { opacity: 1; color: var(--ink); }
.progress-steps li.done { opacity: 1; color: var(--ink); }
.progress-steps .dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  position: relative;
  transition: var(--ease);
}
.progress-steps li.active .dot {
  border-color: var(--gold);
  animation: pulse 900ms ease-in-out infinite;
}
.progress-steps li.done .dot { border-color: var(--gold); background: var(--gold); }
.progress-steps li.done .dot::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--ink);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-soft); }
  50% { box-shadow: 0 0 0 7px var(--gold-soft); }
}

/* ---------- RESULT TIMELINE ---------- */
.result-order {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 0 30px;
  word-break: break-all;
}
.timeline { list-style: none; }
.timeline li {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 0 0 28px 0;
}
.timeline li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 22px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}
.timeline li.done:not(:last-child)::before { background: var(--gold); }
.tl-dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg);
  margin-top: 4px;
  z-index: 1;
}
.timeline li.done .tl-dot { border-color: var(--gold); background: var(--gold); }
.timeline li.current .tl-dot {
  border-color: var(--gold);
  background: var(--bg);
  box-shadow: 0 0 0 5px var(--gold-soft);
}
.timeline h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--muted);
}
.timeline p { font-size: 14.5px; color: var(--muted); opacity: .75; max-width: 420px; }
.timeline li.done h3, .timeline li.current h3 { color: var(--ink); }
.timeline li.current h3 { color: var(--gold-deep); }
.timeline li.done p, .timeline li.current p { opacity: 1; }

.next-step {
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  font-size: 15px;
  margin: 6px 0 22px;
}
#trackingBtn { margin-bottom: 8px; }

.email-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.email-note { font-size: 13px; color: var(--gold-deep); font-weight: 600; }

/* ---------- NOT FOUND ---------- */
.check-list { margin: 0 0 16px 22px; color: var(--ink-2); }
.check-list li { margin-bottom: 8px; }
#panelNotFound .btn { margin-top: 10px; }

@media (max-width: 480px) {
  .email-row { flex-direction: column; align-items: flex-start; }
}
