@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #FAF7F2; --surface: #FFFFFF;
  --ink: #0A0A0C; --ink2: #1A1A1A;
  --muted: #6B6359; --subtle: #A39B8E;
  --line: #E8E1D7; --line-soft: #F0EBE2;
  --orange: #D64507; --orange-dark: #B53A06;
  --orange-soft: #FBE8DC; --orange-tint: #FDF4ED;
  --ok: #2D5240; --ok-soft: #E5EDE7;
  --bad: #8B2E2E; --bad-soft: #F5E8E8;
  --font: 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', monospace;
  --shadow-sm: 0 1px 3px rgba(10, 10, 12, 0.05);
  --shadow: 0 4px 16px rgba(10, 10, 12, 0.06);
  --shadow-lg: 0 12px 40px rgba(10, 10, 12, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.mono  { font-family: var(--mono); }
.h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.h2 { font-family: var(--serif); font-size: clamp(26px, 4vw, 36px); line-height: 1.1; }
.eyebrow { font-size: 11px; color: var(--orange); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.label { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field input, .field textarea {
  background: transparent; border: none;
  border-bottom: 1.5px solid var(--line);
  padding: 10px 0; font-size: 16px; color: var(--ink); outline: none;
  font-family: var(--font); transition: border-color 0.2s; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--orange); }
.field input.num, .field input[type=tel] { font-family: var(--mono); }
.field .err { font-size: 11px; color: var(--bad); }

.btn {
  border: none; cursor: pointer; padding: 14px 24px;
  font-family: var(--font); font-weight: 600; font-size: 14px;
  border-radius: 100px; transition: all 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--ink2); transform: translateY(-1px); }
.btn-primary:disabled { background: var(--line); color: var(--subtle); cursor: not-allowed; }
.btn-orange { background: var(--orange); color: white; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }

.stepper { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; }
.step-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--line); color: var(--subtle);
  background: transparent; transition: all 0.3s;
}
.step-dot.active { background: var(--orange); border-color: var(--orange); color: white; }
.step-dot.done { background: var(--ink); border-color: var(--ink); color: white; }
.step-line { width: 50px; height: 1px; background: var(--line); }
.step-line.done { background: var(--ink); }

.num-picker { display: flex; gap: 8px; }
.num-picker button {
  width: 44px; height: 44px; border-radius: 8px;
  border: 1.5px solid var(--line); background: var(--surface);
  cursor: pointer; font-family: var(--mono); font-weight: 600; font-size: 15px;
  color: var(--muted); transition: all 0.15s;
}
.num-picker button.active { background: var(--ink); color: white; border-color: var(--ink); }

.big-number {
  font-family: var(--serif); font-size: clamp(48px, 9vw, 84px);
  letter-spacing: -0.04em; line-height: 1; color: var(--ink);
}
.big-number small {
  font-size: 0.45em; color: var(--muted); display: block; margin-top: 8px;
  font-family: var(--font); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600;
}

.timeline { display: flex; gap: 4px; align-items: flex-end; height: 80px; padding: 12px 0; }
.timeline .bar { flex: 1; background: var(--line); border-radius: 4px 4px 0 0; min-height: 20%; transition: all 0.3s; }
.timeline .bar.first { background: var(--orange); }
.timeline .bar.last { background: var(--ok); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.4s ease-out; }

.halo {
  position: absolute; pointer-events: none; z-index: 0;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--orange-tint) 0%, transparent 70%);
  filter: blur(40px); opacity: 0.6;
}

@media (max-width: 600px) {
  .stepper { gap: 8px; padding: 16px; }
  .step-line { width: 30px; }
}
