/* ═══════════════════════════════════════════════════════════════════════
   v9 Interested — application page, rebuilt on the v2.css/v9.css design
   system (eyebrow/display hero, hairline panels, Chakra Petch micro-labels).
   Form interaction states are deliberately gray/neutral - red only appears
   on the .err validation state so the form reads friendly, not alarming.
   The form's ids/names and /api/application.php endpoint are
   contract-locked to assets/js/interested.js — markup can change, those
   can't. This file owns the page layout plus the v9 form-field styling
   (v2.css has no shared input styles yet; .v9-field is authored here).
   ═══════════════════════════════════════════════════════════════════════ */

.v9-int-title { font-size: clamp(40px, 7vw, 92px); margin-top: 12px; }
.v9-int-lead {
  max-width: 760px;
  margin-top: 22px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
}

/* ── Two-column layout: info rail + form panel ────────────────────────── */
.v9-int-grid {
  display: grid;
  grid-template-columns: minmax(260px, 5fr) 7fr;
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(40px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 900px) {
  .v9-int-grid { grid-template-columns: 1fr; }
}

/* ── Info rail ────────────────────────────────────────────────────────── */
.v9-int-info .divider-label { margin: 0 0 22px; }
.v9-int-info .divider-label + .divider-label,
.v9-int-social + .divider-label { margin-top: 40px; }
.v9-int-block { margin-bottom: 24px; }
.v9-int-block .k {
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.v9-int-block .v { margin-top: 6px; color: var(--text); font-size: 14.5px; line-height: 1.65; }
.v9-int-block .v a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-hard); }
.v9-int-block .v a:hover { color: var(--red-hi); border-color: var(--red-hi); }

.v9-int-info > .divider-label:nth-of-type(2) { margin-top: 40px; }
.v9-int-social { list-style: none; margin: 0; padding: 0; }
.v9-int-social li + li { margin-top: 2px; }
.v9-int-social a {
  display: inline-block;
  padding: 7px 0;
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
}
.v9-int-social a:hover { color: var(--red-hi); transform: translateX(4px); }

/* Full-rail brand mark: capped so it doesn't balloon in the single-column
   mobile layout */
.v9-int-logo {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin: 56px auto 0;
}

/* ── Form panel ───────────────────────────────────────────────────────── */
.v9-int-form {
  background: var(--bg-card);
  border: 1px solid var(--line-hard);
  border-top: 2px solid var(--red);
  padding: clamp(24px, 3.5vw, 44px);
}
.v9-int-form-head h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.v9-int-flabel {
  margin: 34px 0 16px;
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.v9-int-flabel::before { content: '// '; color: var(--text-mute); }

.v9-int-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
}
.v9-int-fields .span2 { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .v9-int-fields { grid-template-columns: 1fr; }
  .v9-int-fields .span2 { grid-column: auto; }
}

.v9-field { position: relative; }
.v9-field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.v9-field input,
.v9-field textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--line-hard);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 0;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.v9-field textarea { resize: vertical; min-height: 110px; }
.v9-field input::placeholder,
.v9-field textarea::placeholder { color: var(--text-mute); }
/* Friendly-but-HUD focus, still no red (red is reserved for .err below):
   the border brightens gray with a faint halo, the micro-label lights up,
   and a white underline sweeps left-to-right along the input's baseline.
   The ::after rides the wrapper's bottom edge, which is the input's bottom
   edge - the input/textarea is always .v9-field's last child. */
.v9-field input:focus,
.v9-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  background: var(--bg-raise);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.v9-field:focus-within label { color: var(--text); }
.v9-field::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.12));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.v9-field:focus-within::after { transform: scaleX(1); }
/* number spinners off - the grade field reads cleaner as plain text */
.v9-field input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.v9-field input[type="number"]::-webkit-outer-spin-button,
.v9-field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Error state toggled by interested.js */
.v9-field input.err,
.v9-field textarea.err { border-color: var(--red-hi) !important; }

.v9-int-submit {
  margin-top: 30px;
  padding: 16px 44px;
  background: none;
  color: var(--text, #fff);
  border: 1px solid var(--line-hard, rgba(255,255,255,0.3));
  font-family: var(--font-tech), inherit;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.v9-int-submit:hover { border-color: rgba(255, 255, 255, 0.55); color: var(--text, #fff); }
.v9-int-submit:disabled { opacity: 0.5; cursor: default; }

/* ── Success popup ────────────────────────────────────────────────────── */
.v9-int-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.v9-int-overlay.show { display: flex; }
.v9-int-popup {
  max-width: 440px;
  width: 100%;
  background: var(--bg-card, #0a0a0a);
  border: 1px solid var(--line-hard, rgba(255,255,255,0.3));
  border-top: 2px solid var(--red-hi, red);
  padding: 36px;
  text-align: center;
}
.v9-int-popup p { color: var(--text-dim, #ccc); line-height: 1.6; margin-bottom: 22px; }
.v9-int-popup .v9-int-submit { margin-top: 0; padding: 10px 28px; }
