/* ============================================================
   Chat2Evidence — Base Styles: Reset + Typography + Layout
   ============================================================ */

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--gray-50);
  color: var(--navy);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Links ── */
a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--teal-dark); text-decoration: underline; }

/* ── Images ── */
img { max-width: 100%; display: block; }

/* ── Focus Ring ── */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { line-height: 1.7; }

strong { font-weight: 700; }
em     { font-style: italic; }

.mono {
  font-family: var(--font-mono);
  font-size: .85em;
}

/* ── Container ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container--sm  { max-width: 640px; }
.container--md  { max-width: 760px; }
.container--lg  { max-width: 1100px; }

/* ── Step wrapper ── */
.step-wrap {
  display: none;
  min-height: calc(100vh - 64px);
  padding-bottom: var(--space-16);
}
.step-wrap.active {
  display: block;
  animation: fadeInUp 0.35s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Progress Steps ── */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--space-4) 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .82rem;
  font-weight: 500;
  color: var(--gray-400);
  padding: 0 var(--space-4);
  transition: color var(--t-normal);
}
.progress-step.active    { color: var(--teal); font-weight: 700; }
.progress-step.completed { color: var(--teal-dark); }
.step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  transition: all var(--t-normal);
  flex-shrink: 0;
}
.progress-step.active .step-num {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.progress-step.completed .step-num {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.step-connector {
  width: 32px; height: 2px;
  background: var(--gray-200);
  transition: background var(--t-normal);
}
.step-connector.done { background: var(--teal); }

@media (max-width: 400px) {
  .progress-step span:last-child { display: none; }
}

/* ── SITE FOOTER RESPONSIVE ── */
@media (max-width: 768px) {
  footer > div > div:first-of-type {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
}
@media (max-width: 480px) {
  footer > div > div:first-of-type {
    grid-template-columns: 1fr !important;
  }
  footer > div > div:last-of-type {
    flex-direction: column !important;
    text-align: center !important;
  }
}
