:root {
  /* Accent — teal primary, coral only for destructive */
  --teal: #14b8a6;
  --teal-deep: #0f9e8e;
  --teal-soft: #5eead4;
  --coral: #fb7185;
  --coral-deep: #f43f5e;
  --orange: #fb923c;

  /* Surfaces — calm, flat dark */
  --bg: #0a0e11;
  --bg-2: #0d1216;
  --surface: #111820;
  --surface-2: #161f27;
  --border: #212c34;
  --border-soft: #1a232a;
  --hairline: rgba(255, 255, 255, 0.05);

  /* Text */
  --text: #f1f5f7;
  --muted: #93a3ad;
  --faint: #5e6c75;

  /* Radii */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;

  /* Elevation — soft, minimal */
  --shadow-1: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 16px 40px rgba(0, 0, 0, 0.36);
  --ring-teal: 0 0 0 3px rgba(20, 184, 166, 0.18);

  /* Type — single clean sans */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-sans);
}

body.page {
  font-family: var(--font-sans);
  background:
    radial-gradient(1100px 620px at 50% -22%, rgba(20, 184, 166, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ---------- Motion ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-1);
  animation: fadeUp 0.45s var(--ease) both;
}

/* ---------- Brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.brand .brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
  border-radius: 11px;
  border: 1px solid var(--hairline);
}
.brand h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--teal);
  color: #042a26;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1px;
  cursor: pointer;
  touch-action: manipulation;
  text-decoration: none;
  text-align: center;
  width: 100%;
  transition: background 0.2s var(--ease), transform 0.12s var(--ease), opacity 0.2s var(--ease);
}
.btn:hover { background: #19c7b4; }
.btn:active { transform: scale(0.985); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:disabled {
  background: var(--surface-2);
  color: #51616a;
  cursor: not-allowed;
  transform: none;
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover { background: var(--surface-2); }
.btn.coral {
  background: var(--coral);
  color: #2b0610;
}
.btn.coral:hover { background: #fc8497; }
.btn.coral:disabled { background: var(--surface-2); color: #51616a; }
/* Subtle destructive action */
.btn.danger {
  background: transparent;
  color: var(--coral);
  border: 1px solid rgba(251, 113, 133, 0.35);
}
.btn.danger:hover { background: rgba(251, 113, 133, 0.1); border-color: var(--coral); }
.btn + .btn { margin-top: 10px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Step list ---------- */
.steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 13px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.steps .n {
  flex-shrink: 0;
  width: 23px; height: 23px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  color: var(--teal-soft);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.24);
}
.steps li b { color: var(--text); font-weight: 600; }

/* ---------- Upload dropzone (shared) ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.upload {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  background: var(--bg-2);
  border: 1px dashed var(--border);
  border-radius: var(--r);
  padding: 16px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.upload:hover { border-color: rgba(20, 184, 166, 0.5); background: rgba(20, 184, 166, 0.04); }
.upload .ic {
  width: 42px; height: 42px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal-soft);
}
.upload .ic svg { width: 20px; height: 20px; fill: currentColor; }
.upload .t1 { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.upload .t2 { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.field-note { font-size: 12.5px; color: var(--teal-soft); margin: 10px 2px 0; min-height: 16px; font-weight: 500; }

/* Legacy raw file input (kept for safety) */
input[type=file].raw {
  width: 100%;
  padding: 14px;
  background: var(--bg-2);
  border: 1px dashed var(--border);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Accessibility ---------- */
:where(button, a, input, label, [tabindex]):focus-visible {
  outline: 2px solid var(--teal-soft);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
