/* Vanessa Lasshofer — lead form only.
   Warm bone and deep espresso. Beige carries the luxury; contrast keeps it
   readable, which cheap beige never does. */

:root {
  --paper:   #FAF6EF;
  --paper-2: #F0E9DD;
  --ink:     #2B241C;
  --slate:   #6E6154;
  --rule:    #E4DBCC;
  --rule-2:  #CFC3AF;
  --go:      #8A6B43;
  --go-lift: #A1814F;
  --go-tint: #F5EEE2;
  --display: "Cormorant Garamond", Georgia, serif;
  --body:    "Jost", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-weight: 400;
  color: var(--ink); background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.lead { min-height: 100dvh; display: grid; place-items: center; padding: 1.25rem; }
.lead-card {
  width: 100%; max-width: 34rem; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 3px;
  box-shadow: 0 1px 2px rgba(43,36,28,.04), 0 16px 40px rgba(43,36,28,.08);
  overflow: hidden;
}

.ld-top { display: flex; align-items: center; justify-content: flex-end; padding: 0 1.75rem; }
.ld-count {
  font-family: var(--mono); font-size: .68rem; color: var(--slate);
  letter-spacing: .12em; margin: 0; padding: .9rem 0 .6rem;
}
.ld-count:empty { padding: 0; }

.ld-track { height: 2px; background: var(--rule); }
.ld-track span {
  display: block; height: 100%; width: 0; background: var(--go);
  transition: width .35s cubic-bezier(.4,0,.2,1);
}

.ld-body { padding: 2rem 1.75rem 1.75rem; }

.ld-step { display: none; }
.ld-step.on { display: block; animation: ld-in .32s cubic-bezier(.2,.7,.3,1) both; }
@keyframes ld-in { from { opacity: 0; transform: translateY(8px); } }

.ld-step h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.55rem, 5.5vw, 2rem); line-height: 1.14;
  letter-spacing: -.01em; margin: 0 0 .6rem;
}
.ld-step p.ld-sub {
  color: var(--slate); font-size: .95rem; font-weight: 300;
  line-height: 1.6; margin: 0 0 1.4rem;
}

.ld-step input[type=text], .ld-step input[type=tel], .ld-step input[type=email] {
  width: 100%; font: inherit; font-size: 1.05rem; padding: .85rem .95rem;
  border: 1px solid var(--rule-2); border-radius: 2px;
  background: var(--paper); color: var(--ink); -webkit-appearance: none;
}
.ld-step input::placeholder { color: #A2957F; }
.ld-step input:focus-visible, .ld-step select:focus-visible {
  outline: 2px solid var(--go); outline-offset: 1px; border-color: transparent;
}
.ld-email { margin-top: .55rem; }

.ld-tel { display: grid; grid-template-columns: minmax(0,7.5rem) 1fr; gap: .55rem; }
.ld-tel select {
  font: inherit; font-size: .95rem; padding: .85rem .5rem;
  border: 1px solid var(--rule-2); border-radius: 2px;
  background: var(--paper); color: var(--ink); min-width: 0;
}

.ld-opts { display: grid; gap: .5rem; }
.ld-opt {
  display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left;
  font: inherit; font-size: 1rem; padding: .9rem 1rem; cursor: pointer;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: 2px;
  transition: border-color .15s, background .15s, transform .08s;
}
.ld-opt:hover { border-color: var(--go); background: var(--go-tint); }
.ld-opt:active { transform: scale(.995); }
.ld-opt.sel { border-color: var(--go); background: var(--go-tint); box-shadow: inset 0 0 0 1px var(--go); }
.ld-opt b {
  font-family: var(--mono); font-size: .66rem; font-weight: 400;
  color: var(--slate); border: 1px solid var(--rule-2); border-radius: 2px;
  padding: .12rem .38rem; flex: none;
}
.ld-opt.sel b { color: var(--go); border-color: var(--go); }

.ld-acts { display: flex; align-items: center; gap: .85rem; margin-top: 1.4rem; }
.ld-btn {
  font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer;
  padding: .85rem 1.7rem; border-radius: 2px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  letter-spacing: .02em;
  transition: background .15s, border-color .15s, transform .08s;
}
.ld-btn:hover { background: var(--go); border-color: var(--go); }
.ld-btn:active { transform: scale(.985); }
.ld-btn.ghost {
  background: transparent; color: var(--slate); border-color: transparent;
  padding-left: .25rem; padding-right: .25rem; font-size: .9rem;
}
.ld-btn.ghost:hover { color: var(--ink); background: transparent; }
.ld-hint {
  font-family: var(--mono); font-size: .64rem; color: var(--slate);
  letter-spacing: .14em; margin-left: auto;
}

.ld-err { color: #8C3A2B; font-size: .85rem; min-height: 1.2em; margin: .55rem 0 0; }
.shake { animation: ld-shake .32s; }
@keyframes ld-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ld-step.busy { opacity: .55; pointer-events: none; }
.ld-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.ld-done { text-align: center; padding: .5rem 0 .25rem; }
.ld-tick {
  width: 3.1rem; height: 3.1rem; margin: 0 auto 1.1rem; border-radius: 50%;
  background: var(--go); display: grid; place-items: center;
}
.ld-tick svg {
  width: 1.4rem; height: 1.4rem; stroke: var(--paper); stroke-width: 2.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.ld-done p {
  color: var(--slate); font-size: .98rem; font-weight: 300; line-height: 1.65;
  margin: 0 auto 1.1rem; max-width: 26rem;
}
.ld-sign { font-family: var(--display); font-size: 1.15rem; color: var(--ink) !important; }
.ld-sign span {
  display: block; font-family: var(--mono); font-size: .64rem;
  color: var(--slate); letter-spacing: .16em; margin-top: .35rem;
}

#ld-fallback {
  margin-top: 1.2rem; padding: .9rem 1rem; border-radius: 2px;
  background: var(--paper-2); border: 1px solid var(--rule); font-size: .9rem;
}
#ld-fallback a { color: var(--go); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .ld-step.on { animation: none; }
  .ld-track span { transition: none; }
  .shake { animation: none; }
}
