/* Psychedelic Vets — The Debrief opt-in card.
 *
 * ONE definition, site-wide. This card previously existed ONLY on the homepage
 * (#join), while every other page carried a plain mint-green box with inline
 * styles — so the brand's most-repeated element was also its least consistent.
 *
 * Lives in an external stylesheet on purpose: the metatron/compass URLs are
 * ABSOLUTE (/img/...), so this renders identically at every depth — root pages,
 * /debrief/*, and /field-notes/*. Relative paths silently broke on subpages.
 *
 * Uses Kit's own class names (.formkit-form / .formkit-input / .formkit-submit)
 * so the real HTML <form> is skinned without any extra markup. See kit-lazy.js:
 * the form is REAL HTML — JS only enhances it, never creates it.
 */

.debrief-optin {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(199, 162, 74, .35);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .7);
  background: var(--charcoal, #1C2526);
  overflow: hidden;
}

.do-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 32px 36px;
}

.do-left { flex: 1 1 auto; min-width: 0; text-align: center; }

.do-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

/* The Metatron sits BEHIND the compass — present, subordinate. Absolute path so
   it resolves from /debrief/ and /field-notes/ too. */
.do-brand::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 250px; height: 250px;
  transform: translate(-50%, -50%);
  background: url('/img/debrief-metatron.svg') center/contain no-repeat;
  opacity: .14;
  pointer-events: none;
  z-index: 0;
}
.do-brand > * { position: relative; z-index: 1; }

.do-mark { height: 44px; width: auto; flex: none; }

.do-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--cream, #F4E9C8);
  line-height: 1;
  letter-spacing: .4px;
}

.do-kicker {
  margin-top: 6px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold, #C47F17);
}

.do-lede {
  font-size: .94rem;
  color: var(--sage, #A8B5A2);
  line-height: 1.55;
  max-width: 430px;
  margin: 0 auto;
}

.do-signup { flex: 0 0 320px; max-width: 320px; }

/* Skin the real Kit form to the dark card */
.do-form .formkit-form { background: transparent !important; box-shadow: none !important; border: none !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
.do-form .formkit-form > div { padding-top: 0 !important; padding-bottom: 0 !important; }
.do-form .formkit-fields { display: flex; flex-direction: column; gap: 9px; }
.do-form .formkit-field { margin: 0; }
.do-form .formkit-input {
  width: 100%;
  background: rgba(255, 255, 255, .05) !important;
  color: var(--cream, #F4E9C8) !important;
  border: 1.5px solid rgba(168, 181, 162, .4) !important;
  border-radius: 8px !important;
  padding: 13px 14px !important;
  font-size: 15px !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
}
.do-form .formkit-input::placeholder { color: var(--sage-med, #7A8F7A) !important; opacity: 1 !important; }
.do-form .formkit-input:focus { border-color: var(--teal, #2E9387) !important; outline: none !important; }
.do-form .formkit-submit {
  width: 100%;
  background: var(--teal, #2E9387) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 13px 20px !important;
  cursor: pointer;
  font-family: 'Inter', -apple-system, sans-serif !important;
  transition: background .18s;
}
.do-form .formkit-submit:hover { background: var(--teal-bright, #46B6A5) !important; }
.do-form .formkit-submit > span { color: var(--cream, #F4E9C8) !important; font-weight: 700 !important; letter-spacing: .3px; }
.do-form .formkit-powered-by-convertkit-container,
.do-form .formkit-powered-by-convertkit { display: none !important; }

.do-fine {
  margin: 11px 0 0;
  font-size: .72rem;
  color: var(--sage-med, #7A8F7A);
  line-height: 1.5;
}

/* Section wrapper for pages that aren't the homepage */
.debrief-optin-sec { padding: 48px 24px; }

@media (max-width: 720px) {
  .do-inner { flex-direction: column; text-align: center; gap: 22px; padding: 28px 22px; }
  .do-brand { align-items: center; }
  .do-lede { margin: 0 auto; }
  .do-signup { flex: none; width: 100%; max-width: 400px; }
  .do-fine { text-align: center; }
}
