/* ============================================================
   SignaturePro · Core Stylesheet (Phase 1)
   Full dashboard styling lands in Phase 3.
   ============================================================ */

:root {
  /* Palette */
  --bg:        #fafafa;
  --surface:   #ffffff;
  --border:    #e6e8ec;
  --text:      #0f1115;
  --text-soft: #4a5160;
  --muted:     #8a93a3;

  --primary:    #5b8def;
  --primary-d:  #4a76d8;
  --primary-l:  #eef3ff;
  --accent:     #7c5cff;

  --ok:    #10a36a;
  --err:   #e2685a;
  --warn:  #e8a13b;

  /* Type */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;

  /* Spacing & radii */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15,17,21,.04), 0 1px 3px rgba(15,17,21,.06);
  --shadow:    0 4px 14px rgba(15,17,21,.06), 0 1px 3px rgba(15,17,21,.04);
  --shadow-lg: 0 20px 50px -10px rgba(15,17,21,.15);

  --container: 1120px;
}

/* ---- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-d); }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---- Header -------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand--center { display: block; text-align: center; margin-bottom: 24px; }
.site-nav { display: flex; gap: 8px; align-items: center; }

/* ---- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px;
  font: inherit; font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-d); color: #fff; }
.btn--ghost   { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface); border-color: var(--text-soft); color: var(--text); }
.btn--lg { padding: 14px 26px; font-size: 15px; }

/* ---- Hero ---------------------------------------------------- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(91,141,239,.12), transparent 60%),
    var(--bg);
}
.hero__eyebrow {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px; font-weight: 600;
  color: var(--primary-d);
  background: var(--primary-l);
  border-radius: 99px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.hero__sub {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 580px;
  margin: 0 auto 32px;
}
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Status card -------------------------------------------- */
.status { padding: 0 24px 100px; }
.status-card {
  max-width: 520px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}
.status-card h3 { font-size: 16px; margin-bottom: 16px; }
.status-list { list-style: none; padding: 0; margin: 0; }
.status-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-size: 14px; color: var(--text-soft);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.dot--ok      { background: var(--ok); box-shadow: 0 0 0 3px rgba(16,163,106,.15); }
.dot--pending { background: var(--muted); box-shadow: 0 0 0 3px rgba(138,147,163,.15); }

/* ---- Auth shell --------------------------------------------- */
.auth-shell {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(91,141,239,.1), transparent 60%),
    var(--bg);
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  text-align: center;
}
.auth-card h1 { font-size: 22px; margin-bottom: 8px; }

/* ---- Error shell -------------------------------------------- */
.error-shell {
  min-height: 70vh;
  display: grid; place-items: center;
  text-align: center;
  padding: 40px 20px;
}
.error-code {
  font-size: 80px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  letter-spacing: -0.04em;
}

/* ---- Forms (base) ------------------------------------------- */
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,141,239,.15);
}
.field .error { color: var(--err); font-size: 12px; margin-top: 4px; display: block; }

/* ---- Toasts -------------------------------------------------- */
.toast {
  position: fixed; top: 20px; right: 20px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: toast-in .25s ease-out;
  max-width: 360px;
}
.toast--success { background: var(--ok); color: #fff; }
.toast--error   { background: var(--err); color: #fff; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Utility ------------------------------------------------- */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-3 { margin-top: 24px; }

/* ---- Responsive --------------------------------------------- */
@media (max-width: 640px) {
  .hero { padding: 60px 0 40px; }
  .site-header__inner { padding: 14px 20px; }
  .btn--lg { padding: 12px 20px; }
}

/* ============================================================
   Home page — features + CTA + footer
   ============================================================ */

.hero__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.features {
  padding: 80px 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.feature-card__icon svg {
  width: 22px;
  height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}

.cta-section {
  padding: 0 24px 80px;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.cta-card h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.cta-card p {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  margin: 0 0 24px;
}

.cta-card .btn {
  background: #fff;
  color: var(--primary-d);
}
.cta-card .btn:hover {
  background: #f0f4ff;
  color: var(--primary-d);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .features { padding: 60px 16px; }
  .cta-card { padding: 40px 24px; }
  .cta-card h2 { font-size: 22px; }
  .site-footer__inner { flex-direction: column; text-align: center; }
}