@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

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

:root {
  --bg: #F8F5F0;
  --ink: #1C1A17;
  --accent: #C5622A;
  --accent-light: #FDF0E8;
  --muted: #8A8278;
  --border: #E4DDD5;
  --white: #FFFFFF;
  --radius: 14px;
  --step-active: var(--accent);
  --step-done: #5A8A5A;
  --step-pending: #D5CFC8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Progress Nav ── */
.progress-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
}

.progress-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand span { color: var(--accent); }

/* Steps */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.step-item {
  display: flex;
  align-items: center;
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .2s;
}

.step-btn:hover .step-label { opacity: 1; }

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .3s;
}

.step-label {
  font-size: 12px;
  white-space: nowrap;
  transition: opacity .2s;
}

/* States */
.step-item.done .step-num {
  background: var(--step-done);
  color: var(--white);
}
.step-item.done .step-label { color: var(--step-done); opacity: .7; }

.step-item.active .step-num {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 0 4px #C5622A22;
}
.step-item.active .step-label { color: var(--accent); font-weight: 500; opacity: 1; }

.step-item.pending .step-num {
  background: var(--step-pending);
  color: var(--muted);
}
.step-item.pending .step-label { color: var(--muted); opacity: .6; }

.step-connector {
  width: 32px;
  height: 1px;
  background: var(--border);
  margin: 0 2px;
  flex-shrink: 0;
}

.step-connector.done { background: var(--step-done); }

/* Progress bar */
.progress-bar-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

/* ── Page content ── */
.page-content {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 56px 32px 80px;
}

/* ── Eyebrow ── */
.eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
}

/* ── Page heading ── */
.page-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.page-heading em { font-style: italic; color: var(--accent); }

.page-lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 48px;
}

/* ── Nav buttons ── */
.nav-actions {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all .2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: #A84E20;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(197,98,42,.3);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ── Card ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ── Fade in ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeUp .5s ease forwards;
}

.fade-in-delay-1 { animation-delay: .1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: .2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: .3s; opacity: 0; }

@media (max-width: 600px) {
  .step-label { display: none; }
  .progress-nav { padding: 0 16px; }
  .page-content { padding: 36px 16px 60px; }
  .step-connector { width: 20px; }
}
