/* ─── Artemis Scale — Global Styles ──────────────────────────────────────── */

@layer base {
  html, body {
    margin: 0;
    padding: 0;
  }
  body {
    overscroll-behavior: none;
  }
  main > :first-child { margin-top: 0 !important; }
  main > :last-child  { margin-bottom: 0 !important; }
}

/* Hide scrollbar everywhere */
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; -ms-overflow-style: none; }

/* Selection */
::selection {
  background-color: #a63500;
  color: #ffffff;
}

/* ─── The Commercial Thread ─────────────────────────────────────────────── */
.thread-line {
  width: 2px;
  background-color: #a63500;
  flex-shrink: 0;
}

.thread-line-h {
  height: 2px;
  background-color: #a63500;
}

/* ─── Form Step Transitions ─────────────────────────────────────────────── */
.form-step {
  display: none;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.form-step.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.form-step.exit-left {
  opacity: 0;
  transform: translateX(-24px);
}

/* ─── Option Pill Selects ───────────────────────────────────────────────── */
.option-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d7dae0;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.01em;
  color: #181c20;
  text-align: left;
  width: 100%;
}

.option-pill:hover {
  border-color: #a63500;
  background: #fff8f6;
}

.option-pill.selected {
  border-color: #a63500;
  background: #fff8f6;
  color: #7e2600;
}

.option-pill .pill-dot {
  width: 14px;
  height: 14px;
  border: 1.5px solid #d7dae0;
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}

.option-pill.selected .pill-dot {
  border-color: #a63500;
  background: #a63500;
  position: relative;
}

/* ─── Progress Bar ──────────────────────────────────────────────────────── */
.progress-bar-fill {
  height: 2px;
  background-color: #a63500;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Text Input Styles ─────────────────────────────────────────────────── */
.as-input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #d7dae0;
  background: transparent;
  padding: 0.5rem 0;
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #181c20;
  outline: none;
  transition: border-color 0.15s;
}

.as-input::placeholder {
  color: #8c7168;
}

.as-input:focus {
  border-bottom-color: #a63500;
}

.as-input.error {
  border-bottom-color: #A85D5D;
}

/* ─── Error Message ─────────────────────────────────────────────────────── */
.field-error {
  color: #A85D5D;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
  display: none;
}

.field-error.visible {
  display: block;
}

/* ─── Success State ─────────────────────────────────────────────────────── */
#form-success {
  display: none;
}

#form-success.visible {
  display: flex;
}

/* ─── Loading dots animation ────────────────────────────────────────────── */
@keyframes dot-pulse {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

.loading-dot:nth-child(1) { animation: dot-pulse 1.2s infinite 0s; }
.loading-dot:nth-child(2) { animation: dot-pulse 1.2s infinite 0.2s; }
.loading-dot:nth-child(3) { animation: dot-pulse 1.2s infinite 0.4s; }

/* ─── Stage thread node ─────────────────────────────────────────────────── */
.thread-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #a63500;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ─── Smooth scroll ─────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ─── Section fade-in on scroll (progressive enhancement) ───────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
