/* ============================================================
   ETHAN AI — shared stylesheet, VOLTAGE brand (2026-07-11)
   cobalt #2B3BFF · paper #F4F4EF · acid #D9FF3F · ink #0B0B12
   Archivo (compressed caps display) + Inter (body).
   Used by: apply.html · privacy.html · rules.html
   (index.html carries its own standalone Voltage styles.)
   Kit deliverable: ../brand-kit/
   ============================================================ */

:root {
  --bg: #F4F4EF;         /* paper */
  --surface: #FFFFFF;
  --field: #FFFFFF;
  --text: #0B0B12;       /* ink */
  --body: #43434E;
  --muted: #43434E;
  --faint: #7D7D85;
  --border: #DCDCD2;
  --hairline: #E4E4DB;
  --accent: #2B3BFF;     /* cobalt */
  --accent-dark: #1E2BD4;
  --acid: #D9FF3F;
  --accent-dim: rgba(43, 59, 255, 0.06);
  --ok: #1d8a52;
  --err: #cf3327;
  --font-display: 'Archivo', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: var(--font-body); /* legacy alias — terminal era is over */
  --shadow: 4px 4px 0 0 var(--text);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--acid); color: var(--text); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ── Shell widths ── */
.shell { position: relative; z-index: 1; width: 100%; margin: 0 auto; padding: 0 1.25rem 3.5rem; }
.shell--form { max-width: 620px; }
.shell--doc  { max-width: 740px; }

/* ── Top bar ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0 0.9rem;
  margin-bottom: clamp(1.8rem, 6vh, 3.2rem);
  border-bottom: 2px solid var(--text);
  font-size: 0.8rem; font-weight: 600;
  color: var(--faint);
}
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--accent); text-decoration: none; }
.topbar .path { color: var(--muted); }
.topbar .path b { font-weight: 700; color: var(--text); }

.status { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 59, 255, 0.4); }
  70% { box-shadow: 0 0 0 7px rgba(43, 59, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 59, 255, 0); }
}

/* ── Display type ── */
.display {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 112, 'wght' 900;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.97;
  letter-spacing: 0.005em;
  color: var(--text);
}
.display .dot { color: var(--accent); }

/* Kicker line under headlines (formerly the terminal subline) */
.subline {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.9rem;
}
.subline .caret, .cursor { display: none; } /* terminal-era leftovers, neutralized */

/* Section label (formerly the // slug) */
.slug {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint);
  margin: 2.4rem 0 0.7rem;
}
.slug b { color: var(--accent); }

/* ── Apply page: masthead + form ── */
.masthead { margin-bottom: 0.4rem; }
.masthead .mascot { width: 56px; height: 56px; image-rendering: pixelated; display: block; margin-bottom: 1.2rem; }

.lede { font-size: 0.95rem; color: var(--body); margin-top: 1.2rem; max-width: 54ch; }
.lede a { text-decoration: underline; text-underline-offset: 3px; }

.benefits { border-top: 2px solid var(--text); margin-top: 0.65rem; }
.benefits li {
  display: flex; align-items: flex-start; gap: 0.85rem;
  list-style: none;
  padding: 0.8rem 0.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem; color: var(--body);
}
.benefits li::before { content: '+'; color: var(--accent); font-weight: 800; line-height: 1.5; }
.benefits strong { color: var(--text); font-weight: 700; }
.cash { color: var(--accent); font-weight: 700; white-space: nowrap; }

form label {
  display: block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin: 1.35rem 0 0.45rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: var(--field);
  border: 2px solid var(--text);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px; /* ≥16px prevents iOS zoom-on-focus */
  font-family: var(--font-body);
  transition: box-shadow 0.13s ease, border-color 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 3px 3px 0 0 var(--accent);
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230B0B12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
}
textarea { min-height: 84px; resize: vertical; }

button[type="submit"] {
  margin-top: 1.7rem;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--text);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.95rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.13s ease, box-shadow 0.13s ease, background 0.15s ease;
}
button[type="submit"]:hover:not(:disabled) { background: var(--accent-dark); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 var(--text); }
button[type="submit"]:active:not(:disabled) { transform: translate(0, 0); box-shadow: var(--shadow); }
button[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; }

.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

#msg { margin-top: 1.1rem; padding: 0.85rem 1rem; border-radius: 10px; display: none; font-size: 0.9rem; font-weight: 500; }
#msg.ok  { background: rgba(29, 138, 82, 0.08);  border: 2px solid var(--ok);  color: var(--ok);  display: block; }
#msg.err { background: rgba(207, 51, 39, 0.07); border: 2px solid var(--err); color: var(--err); display: block; }

.cf-turnstile { margin-top: 1.2rem; }

.consent { display: flex; align-items: flex-start; gap: 0.7rem; margin-top: 1.5rem; font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.consent input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.consent label { display: inline; margin: 0; font-family: var(--font-body); font-size: 0.84rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.consent strong { color: var(--text); }

/* ── Document pages (privacy / rules) ── */
.doc h1 {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 110, 'wght' 900;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.02;
  margin-bottom: 0.7rem;
}
.doc .meta { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 2.2rem; }
.doc .nopurchase {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text);
  background: var(--acid);
  border: 2px solid var(--text);
  border-radius: 8px;
  box-shadow: 3px 3px 0 0 var(--text);
  display: inline-block;
  padding: 0.45rem 0.75rem;
  margin: -1.2rem 0 2.2rem;
}
.doc h2 {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  margin: 2.1rem 0 0.55rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
}
.doc h2 .n { color: var(--accent); font-weight: 800; margin-right: 0.5rem; }
.doc.doc--slash h2::before { content: none; }
.doc p, .doc li { color: var(--body); font-size: 0.93rem; }
.doc p { margin: 0.55rem 0; }
.doc ul { padding-left: 1.35rem; margin: 0.6rem 0; }
.doc li { margin: 0.35rem 0; }
.doc strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 0.8rem 0; font-size: 0.86rem; }
.doc th, .doc td { text-align: left; padding: 0.55rem 0.65rem 0.55rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.doc .intro { color: var(--muted); }
.backlinks { margin-top: 2.6rem; font-size: 0.82rem; font-weight: 600; }
.backlinks a { margin-right: 1rem; color: var(--muted); }
.backlinks a:hover { color: var(--accent); text-decoration: none; }

/* ── Footer ── */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--text);
  font-size: 0.78rem;
  color: var(--faint);
  display: flex; flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  justify-content: space-between;
}
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--accent); text-decoration: none; }

/* ── Motion / responsive ── */
.rise { animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 480px) {
  .topbar { flex-wrap: wrap; row-gap: 0.35rem; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .status .dot { animation: none; }
  * { transition: none !important; }
}
