/* Founding Practice offer page. Tokens + motion match the editor/vertical family.
   Entrances use kpRise via [data-reveal] (main.css); this file adds the layout,
   the door/pillar cards, the form, and the animated confirm. */

/* resultPop is defined in app.css (not loaded here), so we declare it locally. */
@keyframes resultPop {
  0%   { opacity: 0; transform: scale(0); }
  55%  { opacity: 1; transform: scale(1.12); }
  100% { transform: scale(1); }
}

.fp-hero { text-align: center; }
.fp-hero-inner { max-width: 760px; margin: 0 auto; }
.fp-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 14px;
}
.fp-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 0 0 16px; }
.fp-sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--text-soft); max-width: 60ch; margin: 0 auto 24px; }
.fp-hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.fp-scarcity { margin-top: 16px; font-size: 14px; color: var(--text-mute); }

.fp-btn-lg { padding: 14px 28px; font-size: 16px; }

/* Pillars */
.fp-pillars {
  max-width: 1000px; margin: 0 auto;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .fp-pillars { grid-template-columns: repeat(3, 1fr); } }
.fp-pillar {
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.fp-pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.fp-pillar h3 { font-size: 18px; margin: 0 0 8px; }
.fp-pillar p { font-size: 14px; color: var(--text-soft); margin: 0; }

/* Doors */
.fp-doors {
  max-width: 1000px; margin: 0 auto;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .fp-doors { grid-template-columns: 1fr 1fr; } }
.fp-door {
  display: flex; flex-direction: column;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.fp-door:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.fp-door h3 { font-size: 20px; margin: 0 0 8px; }
.fp-door > p { font-size: 14px; color: var(--text-soft); margin: 0 0 18px; }
.fp-door .btn { margin-top: auto; }

/* Form */
.fp-form { display: flex; flex-direction: column; gap: 14px; }
.fp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .fp-row { grid-template-columns: 1fr; } }
.fp-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-soft); }
.fp-field small { color: var(--text-mute); font-weight: 400; }
.fp-field input,
.fp-field select,
.fp-field textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit; font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.fp-field input:focus-visible,
.fp-field select:focus-visible,
.fp-field textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.fp-error { color: var(--danger); font-size: 13px; margin: 0; }
.fp-privacy { margin: 14px 0 0; font-size: 12px; color: var(--text-mute); }

/* Animated confirm (replaces the form on success). Never snap-shown. */
.fp-done {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 28px 8px;
  animation: kpRise .4s cubic-bezier(.2,.7,.3,1) both;
}
.fp-done svg {
  color: var(--primary);
  animation: resultPop .5s cubic-bezier(.34,1.56,.64,1) both;
}
.fp-done p { font-size: 15px; color: var(--text-soft); margin: 0; max-width: 42ch; }

/* Setup steps */
.fp-steps {
  max-width: 1000px; margin: 0 auto;
  list-style: none; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .fp-steps { grid-template-columns: repeat(3, 1fr); } }
.fp-step {
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.fp-step:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.fp-step h3 { font-size: 16px; margin: 0 0 8px; }
.fp-step p { font-size: 14px; color: var(--text-soft); margin: 0 0 14px; }

/* Reduced motion: the global gate in main.css already neutralizes durations;
   this is belt-and-suspenders for the two named animations above. */
@media (prefers-reduced-motion: reduce) {
  .fp-done, .fp-done svg { animation: none; }
}
