/* ==========================================================================
   Underpine — coming soon
   Same brand system as the main site:
     Cream #F3EADA · Sand #B9A78B · Signal Orange #F15A16
     Pine Tint #2A3F30 · Pine #15211A
     Quicksand (display) / Nunito (body)
   ========================================================================== */

:root {
  --cream: #F3EADA;
  --sand: #B9A78B;
  --sand-soft: #E1CDB3;
  --orange: #F15A16;
  --pine-tint: #2A3F30;
  --pine: #15211A;

  --font-display: "Quicksand", "Nunito", sans-serif;
  --font-body: "Nunito", sans-serif;

  --radius-lg: 28px;
  --shadow-soft: 0 18px 40px -24px rgba(21, 33, 26, 0.35);
  --transition: 220ms ease;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--pine);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- animated background ---------- */

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}

.glow-1 {
  width: 560px;
  height: 560px;
  top: -220px;
  left: -140px;
  background: radial-gradient(circle, rgba(42, 63, 48, 0.22), transparent 65%);
  animation: drift-1 18s ease-in-out infinite alternate;
}

.glow-2 {
  width: 640px;
  height: 640px;
  bottom: -280px;
  right: -160px;
  background: radial-gradient(circle, rgba(241, 90, 22, 0.16), transparent 65%);
  animation: drift-2 22s ease-in-out infinite alternate;
}

.glow-3 {
  width: 480px;
  height: 480px;
  top: 15%;
  left: 60%;
  background: radial-gradient(circle, rgba(185, 167, 139, 0.28), transparent 65%);
  animation: drift-3 26s ease-in-out infinite alternate;
}

@keyframes drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(90px, 60px) scale(1.12); }
}

@keyframes drift-2 {
  from { transform: translate(0, 0) scale(1.08); }
  to   { transform: translate(-110px, -70px) scale(1); }
}

@keyframes drift-3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-80px, 90px) scale(1.15); }
}

/* ---------- layout ---------- */

.header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 40px 24px 0;
}

.logo { height: 36px; width: auto; }

.main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  text-align: center;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.4em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine-tint);
  margin: 0 0 20px;
}

.eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.6; }
}

.lede {
  font-size: 19px;
  color: var(--pine-tint);
  max-width: 46ch;
  margin: 0 auto 44px;
}

/* ---------- form ---------- */

.lead-form {
  background: #fff;
  border: 1px solid rgba(185, 167, 139, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  text-align: left;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--pine-tint);
}

.lead-form input,
.lead-form select {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--pine);
  background: var(--cream);
  border: 1px solid rgba(185, 167, 139, 0.5);
  border-radius: 12px;
  padding: 13px 16px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.lead-form select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232A3F30' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.lead-form input:focus,
.lead-form select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241, 90, 22, 0.18);
}

.button {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border: none;
  border-radius: 999px;
  padding: 15px 28px;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.button:hover {
  background: #d84d10;
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--sand);
  text-align: center;
}

.lead-form[data-state="error"] .form-note {
  color: #9b3411;
}

/* ---------- success ---------- */

.success h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 0.4em;
}

.success p {
  color: var(--pine-tint);
  max-width: 44ch;
  margin: 0 auto;
}

.success a {
  color: var(--orange);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 32px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--sand);
}

.footer p { margin: 0; }

/* ---------- motion & responsive ---------- */

@media (prefers-reduced-motion: reduce) {
  .glow, .eyebrow-dot { animation: none; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .main { padding: 48px 20px 48px; }
  .footer { justify-content: center; text-align: center; }
}
