/* setup.css — styles for setup.html only */

.page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(56px + var(--s7)) var(--s5) var(--s7);
}

.setup-wrap { width: min(520px, 100%); }

.setup-eyebrow {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--s3);
}

.setup-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: var(--s3);
}

.setup-sub {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-bottom: var(--s7);
  line-height: 1.6;
}

.setup-section {
  font-size: var(--fs-xs);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s4);
}

.setup-divider {
  border: none;
  border-top: 1px solid var(--border-dim);
  margin: var(--s6) 0;
}

.setup-field {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s5);
}

.setup-label {
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.setup-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s3) var(--s4);
  font-size: var(--fs-base);
  color: var(--text);
  transition: border-color 150ms ease, background 150ms ease;
}
.setup-input:focus {
  border-color: var(--accent-2);
  background: var(--surface-2);
}

.setup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-bottom: var(--s5);
}

.setup-hint {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-top: var(--s1);
}

/* ── Country tag inputs ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s2);
  min-height: 0;
}

.country-wrap { position: relative; }

.country-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}
.country-dropdown.open { display: block; }

.country-option {
  padding: var(--s2) var(--s4);
  font-size: var(--fs-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease;
}
.country-option:hover,
.country-option.focused {
  background: var(--surface-3);
  color: var(--text);
}

/* ── Currency chips ── */
.currency-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.currency-chip {
  padding: var(--s2) var(--s3);
  border-radius: 100px;
  font-size: var(--fs-sm);
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--surface);
  cursor: pointer;
  transition: all 150ms ease;
  user-select: none;
}
.currency-chip.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ── Toggle ── */
.period-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
  margin-bottom: var(--s5);
  cursor: pointer;
  transition: border-color 150ms ease;
}
.period-toggle:hover { border-color: var(--accent-2); }

.period-toggle-name  { font-size: var(--fs-base); margin-bottom: 2px; }
.period-toggle-label { font-size: var(--fs-sm); color: var(--text-2); }

.toggle-switch {
  width: 40px;
  height: 24px;
  background: var(--surface-3);
  border-radius: 100px;
  position: relative;
  transition: background 200ms ease;
  flex-shrink: 0;
}
.toggle-switch.on { background: var(--accent); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--text);
  border-radius: 50%;
  transition: transform 200ms var(--ease-spring);
}
.toggle-switch.on::after { transform: translateX(16px); }

/* ── Submit ── */
.btn-start {
  width: 100%;
  padding: var(--s3) var(--s4);
  background: var(--accent);
  color: #000;
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: 100px;
  margin-top: var(--s6);
  transition: background 150ms ease, transform 100ms ease;
}
.btn-start:hover  { background: var(--accent-2); color: var(--text); }
.btn-start:active { transform: scale(0.98); }

.error-msg {
  font-size: var(--fs-sm);
  color: var(--red);
  margin-top: var(--s3);
  display: none;
}
