/* =========================================================
   Bincredible — Corporate Website Brand Pass
   Source of truth: marketing/brand/STYLE_GUIDE.md
   Direction: BINA-218 plan §5–§7 (corporate adaptation)
   Acceptance: BINA-218 plan §8 (14 criteria)
   This is the production stylesheet. No external font fetch.
   ========================================================= */

:root {
  /* Brand tokens — verbatim from marketing/brand/STYLE_GUIDE.md §3 */
  --color-bin-ink:        #000915;
  --color-bin-black:      #000101;
  --color-bin-navy:       #010B1A;
  --color-bin-white:      #FEFEFE;
  --color-bin-lime:       #E2FF22;
  --color-bin-lime-deep:  #B5E402;
  --color-bin-lime-dark:  #7A9B00;
  --color-bin-cyan:       #5AC3FB;
  --color-bin-cyan-dark:  #2E88D1;
  --color-bin-cyan-light: #83F4FF;
  --color-bin-blue:       #3266A2;
  --color-bin-blue-dark:  #0D366A;
  --color-bin-smoke:      #5F6764;
  --color-bin-glow:       #DFFF16;
  --color-bin-panel:      #071424;

  /* Corporate surface tokens — additive (do not remove any existing rule) */
  --surface-page:    #F7F8FA;
  --surface-card:    #FFFFFF;
  --surface-ink:     var(--color-bin-ink);
  --border-soft:     #E4E6EB;
  --text-body:       #14171C;
  --text-muted:      #4A5159;
  --text-inverse:    #F2F4F8;
  --focus-ring:      var(--color-bin-cyan-light);

  /* Spacing scale (8pt base) */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;

  --max-w:       1080px;
  --max-w-prose: 760px;
}

/* ---------- reset-ish ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 var(--s-4);
  color: inherit;
}

p { margin: 0 0 var(--s-4); }

a { color: var(--color-bin-blue-dark); }
a:hover { color: var(--color-bin-ink); }

ul, ol { padding-left: 1.25rem; margin: 0 0 var(--s-4); }
li { margin: var(--s-1) 0; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(13, 54, 106, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Skip link — accessibility (WCAG 2.4.1) */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-bin-ink);
  color: var(--color-bin-white);
  padding: var(--s-2) var(--s-4);
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* Visible focus on every interactive element (visibility of system status) */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   NAV — dark navy band, lime rule below (§6 top bar, §7)
   ========================================================= */
.nav {
  background: var(--surface-ink);
  color: var(--text-inverse);
  border-bottom: 3px solid var(--color-bin-lime);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 144px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--color-bin-white);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.nav__mark {
  height: 80px;
  width: auto;
  max-width: min(360px, 70vw);
  filter: drop-shadow(0 0 10px rgba(223, 255, 22, 0.5));
  border-radius: 4px;
}
.nav__word { line-height: 1; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.nav__links a {
  color: var(--text-inverse);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: var(--s-2) var(--s-1);
  border-radius: 6px;
}
.nav__links a:hover { color: var(--color-bin-lime); }
.nav__links a[aria-current="page"] { color: var(--color-bin-lime); }

.nav__disclosure {
  display: none;
  background: transparent;
  border: 2px solid var(--color-bin-lime);
  color: var(--color-bin-lime);
  padding: var(--s-2) var(--s-4);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

/* Mobile nav: collapse to logo + Menu disclosure (§8 #11) */
@media (max-width: 640px) {
  .nav__inner { flex-wrap: wrap; gap: var(--s-3); }
  .nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
    padding-top: var(--s-3);
    border-top: 1px solid rgba(254, 254, 254, 0.12);
  }
  .nav__links[data-open="true"] { display: flex; }
  .nav__disclosure { display: inline-flex; }
  .nav__links a { padding: var(--s-3) var(--s-2); }
}

/* =========================================================
   HERO — smoky wash + wordmark PNG + H1 + lead + CTAs (§6)
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-bin-white);
  background: var(--color-bin-ink);
  border-bottom: 1px solid #0a1424;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(223, 255, 22, 0.18), transparent 30%),
    radial-gradient(circle at 48% 50%, rgba(90, 195, 251, 0.12), transparent 36%),
    radial-gradient(circle at center, #5F6764 0%, #26302F 48%, #000915 100%);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-7) var(--s-5) var(--s-7);
  text-align: center;
}
.hero__wordmark {
  width: min(420px, 80vw);
  height: auto;
  margin: 0 auto var(--s-5);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
}
.hero__lede {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 auto var(--s-3);
  max-width: 22ch;
  color: var(--color-bin-white);
}
.hero__sub {
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0 auto var(--s-5);
  color: rgba(254, 254, 254, 0.86);
}
.hero__actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Two-column hero at >=1024: wordmark on the left, lede+CTAs on the right.
   Keeps the brand mark large while guaranteeing H1 and primary CTA sit above
   the 900px fold at 1440x900. BINA-223. */
@media (min-width: 1024px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--s-7);
    text-align: left;
  }
  .hero__wordmark {
    width: min(420px, 40vw);
    margin: 0;
  }
  .hero__lede,
  .hero__sub { margin-left: 0; margin-right: 0; }
  .hero__actions { justify-content: flex-start; }
}

/* Water-swoosh divider under hero */
.splash {
  height: 8px;
  background: linear-gradient(90deg, transparent, #83F4FF, #5AC3FB, #2E88D1, transparent);
  box-shadow: 0 0 18px rgba(90, 195, 251, 0.45);
}

/* =========================================================
   BUTTONS — primary uses neon lime, ghost on dark surfaces
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  border: 3px solid var(--color-bin-ink);
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
  min-height: 44px;
}
.btn--primary {
  background: linear-gradient(180deg, #F4FF38 0%, #E2FF22 42%, #B5E402 100%);
  color: var(--color-bin-ink);
  box-shadow: 0 4px 0 var(--color-bin-black), 0 0 22px rgba(223, 255, 22, 0.45);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--color-bin-black), 0 0 28px rgba(223, 255, 22, 0.6);
  color: var(--color-bin-ink);
}
.btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--color-bin-black);
}
.btn--ghost {
  background: transparent;
  color: var(--color-bin-white);
  border-color: rgba(254, 254, 254, 0.5);
  text-decoration: underline;
  text-decoration-color: rgba(254, 254, 254, 0.5);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.btn--ghost:hover {
  background: rgba(254, 254, 254, 0.08);
  border-color: var(--color-bin-white);
  color: var(--color-bin-white);
  text-decoration-color: var(--color-bin-white);
}

/* =========================================================
   BANDS — light/ink alternating sections
   ========================================================= */
.band {
  background: var(--surface-page);
  color: var(--text-body);
}
.band--ink {
  background: var(--color-bin-ink);
  color: var(--text-inverse);
  border-top: 1px solid #0a1424;
  border-bottom: 1px solid #0a1424;
}
.band__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-8) var(--s-5);
}
.band__inner--narrow { max-width: var(--max-w-prose); }
.band h2 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  margin-bottom: var(--s-5);
  color: inherit;
}
.band h3 {
  font-size: 1.05rem;
  color: inherit;
  margin-bottom: var(--s-2);
}
.band .muted { color: var(--text-muted); }
.band--ink .muted { color: rgba(254, 254, 254, 0.7); }
.band p, .band li { color: inherit; }
/* Tile content inside .band--ink: defeat .band h3 / .band p / .band li inherit
   so h3 + p + li render as --text-body on the white .tile card. BINA-222. */
.band--ink .tile h3,
.band--ink .tile p,
.band--ink .tile li { color: var(--text-body); }
.band--ink .tile .muted { color: var(--text-muted); }

/* =========================================================
   TILE GRID — three-up benefits (§6)
   ========================================================= */
.tile-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 720px) {
  .tile-grid { grid-template-columns: 1fr; }
}
.tile {
  background: var(--surface-card);
  border: 3px solid var(--color-bin-ink);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: 6px 6px 0 var(--color-bin-black);
  color: var(--text-body);
}
.tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 3px solid var(--color-bin-ink);
  background: var(--color-bin-lime);
  margin-bottom: var(--s-3);
  font-size: 1.3rem;
  box-shadow: 0 0 14px rgba(223, 255, 22, 0.45);
}

/* =========================================================
   STEPS — numbered list (§6 How it works)
   ========================================================= */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-4);
}
.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-4);
  align-items: start;
  background: var(--surface-card);
  border: 2px solid var(--border-soft);
  border-left: 4px solid var(--color-bin-cyan-dark);
  border-radius: var(--radius-md);
  padding: var(--s-4) var(--s-5);
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-bin-ink);
  color: var(--color-bin-lime);
  font-weight: 800;
  font-size: 1.05rem;
  border: 2px solid var(--color-bin-ink);
  box-shadow: 0 0 12px rgba(223, 255, 22, 0.35);
}
.steps h3 { margin-bottom: var(--s-1); font-size: 1.05rem; }
.steps p { margin: 0; color: var(--text-muted); }

/* =========================================================
   TRUST STRIP — A2P line + 3 trust points (§6, §9, §8 #6)
   ========================================================= */
.trust-strip {
  background: var(--color-bin-ink);
  color: var(--text-inverse);
  border-top: 1px solid #0a1424;
  border-bottom: 1px solid #0a1424;
}
.trust-strip__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-7) var(--s-5);
}
.trust-strip__a2p {
  text-align: center;
  color: var(--color-bin-cyan-light);
  font-weight: 800;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: 0.01em;
  margin: 0 auto var(--s-5);
  max-width: 60ch;
}
.trust-strip__points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 720px) {
  .trust-strip__points { grid-template-columns: 1fr; }
}
.trust-strip__points li {
  background: rgba(254, 254, 254, 0.04);
  border: 1px solid rgba(254, 254, 254, 0.12);
  border-radius: var(--radius-md);
  padding: var(--s-4) var(--s-5);
  color: rgba(254, 254, 254, 0.92);
  font-size: 0.95rem;
  text-align: center;
}

/* =========================================================
   FOOTER — dark ink + lime rule (§6 footer, §7)
   ========================================================= */
.foot {
  background: var(--color-bin-ink);
  color: var(--text-inverse);
  border-top: 3px solid var(--color-bin-lime);
  padding: var(--s-7) var(--s-5);
}
.foot__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-5);
  align-items: start;
}
.foot__mark { margin-top: 4px; }
.foot__brand {
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 var(--s-2);
  color: var(--color-bin-white);
}
.foot__contact, .foot__links, .foot__fine {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(254, 254, 254, 0.78);
}
.foot__contact a, .foot__links a {
  color: var(--color-bin-cyan-light);
  text-decoration: none;
}
.foot__contact a:hover, .foot__links a:hover { color: var(--color-bin-lime); }
.foot__links { text-align: right; }
.foot__fine {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(254, 254, 254, 0.12);
  padding-top: var(--s-4);
  margin-top: var(--s-4);
  font-size: 0.85rem;
  text-align: center;
  color: rgba(254, 254, 254, 0.7);
}

@media (max-width: 720px) {
  .foot__inner { grid-template-columns: 1fr; text-align: center; }
  .foot__mark { margin: 0 auto; }
  .foot__links { text-align: center; }
}

/* =========================================================
   LEGAL PAGES — typography wrapper around the existing
   privacy.html / terms.html content. Body copy is preserved
   verbatim (§9). Only the chrome changes.
   ========================================================= */
.legal {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: var(--s-7) var(--s-5) var(--s-9);
  color: var(--text-body);
}
.legal h1 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin-bottom: var(--s-3);
}
.legal h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
  border-top: 1px solid var(--border-soft);
  padding-top: var(--s-5);
}
.legal h3 {
  font-size: 1.05rem;
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
}
.legal p, .legal li { color: var(--text-body); }
.legal .muted { color: var(--text-muted); }
.legal .effective { font-size: 0.95rem; color: var(--text-muted); }
.legal blockquote {
  margin: var(--s-4) 0;
  padding: var(--s-4) var(--s-5);
  border-left: 4px solid var(--color-bin-cyan-dark);
  background: rgba(45, 136, 209, 0.06);
  color: var(--text-body);
  font-weight: 700;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.legal hr {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: var(--s-6) 0;
}

/* =========================================================
   A11Y — respect reduced motion (BINA-224)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   /apply.html — three-step Pro intake form (BINA-353.3)
   Additive: uses existing tokens (.band, .tile-grid, .btn,
   .steps, .skip, focus ring). No existing rule is modified.
   ========================================================= */

.apply {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: var(--s-7) var(--s-5) var(--s-9);
}

.apply__intro {
  margin-bottom: var(--s-6);
}
.apply__eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-bin-blue-dark);
  margin-bottom: var(--s-3);
}
.apply__title {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin-bottom: var(--s-3);
}
.apply__lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

/* Price hook — first visual element after the eyebrow (BINA-533).
   Re-uses the brand-lime pill pattern established by the active
   progress step (.apply__progress li[aria-current="step"]) so the
   hook reads as a price callout without introducing a new token. */
.apply__price {
  margin: 0 0 var(--s-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  font-size: 1rem;
  line-height: 1.45;
}
.apply__price-amount {
  display: inline-block;
  background: var(--color-bin-lime);
  color: var(--color-bin-ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--color-bin-ink);
  box-shadow: 0 0 14px rgba(223, 255, 22, 0.45);
  white-space: nowrap;
}
.apply__price-rest {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: baseline;
}
.apply__price-rest > [aria-hidden="true"] {
  color: var(--text-muted);
  opacity: 0.7;
  font-weight: 400;
}
@media (max-width: 480px) {
  .apply__price-amount { font-size: 1rem; padding: 5px 12px; }
  .apply__price-rest { font-size: 0.9rem; }
}

/* Progress / step indicator */
.apply__progress {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  counter-reset: apply-step;
}
.apply__progress li {
  position: relative;
  background: var(--surface-card);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--s-3) var(--s-4) var(--s-3) calc(var(--s-7) - 4px);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  counter-increment: apply-step;
  min-height: 56px;
  display: flex;
  align-items: center;
}
.apply__progress li::before {
  content: counter(apply-step);
  position: absolute;
  left: var(--s-3);
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-page);
  color: var(--text-muted);
  border: 2px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.apply__progress li[aria-current="step"] {
  border-color: var(--color-bin-ink);
  background: var(--color-bin-lime);
  color: var(--color-bin-ink);
  box-shadow: 0 0 14px rgba(223, 255, 22, 0.45);
}
.apply__progress li[aria-current="step"]::before {
  background: var(--color-bin-ink);
  color: var(--color-bin-lime);
  border-color: var(--color-bin-ink);
}
.apply__progress li[data-state="done"] {
  border-color: var(--color-bin-cyan-dark);
  color: var(--text-body);
}
.apply__progress li[data-state="done"]::before {
  background: var(--color-bin-cyan-dark);
  color: var(--color-bin-white);
  border-color: var(--color-bin-cyan-dark);
  content: "✓";
  font-size: 1.1rem;
}
@media (max-width: 640px) {
  .apply__progress { grid-template-columns: 1fr; }
}

/* Form card */
.apply__card {
  background: var(--surface-card);
  border: 3px solid var(--color-bin-ink);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  box-shadow: 6px 6px 0 var(--color-bin-black);
}
.apply__card h2 {
  font-size: 1.3rem;
  margin-bottom: var(--s-2);
}
.apply__card .apply__step-help {
  color: var(--text-muted);
  margin-bottom: var(--s-5);
  font-size: 0.95rem;
}

/* Error summary (BINA-353.3 a11y — appears at top of form on failure) */
.apply__error-summary {
  display: none;
  background: #fff1f0;
  border: 2px solid #c1352f;
  border-radius: var(--radius-md);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-5);
  color: #5a1a17;
}
.apply__error-summary[data-visible="true"] { display: block; }
.apply__error-summary h3 {
  margin: 0 0 var(--s-2);
  font-size: 1.05rem;
  color: #5a1a17;
}
.apply__error-summary ul {
  margin: 0;
  padding-left: 1.25rem;
}
.apply__error-summary a {
  color: #5a1a17;
  font-weight: 700;
}

/* Field primitives */
.apply__field { margin-bottom: var(--s-5); }
.apply__field:last-of-type { margin-bottom: 0; }
.apply__label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: var(--s-2);
  color: var(--text-body);
}
.apply__label .req {
  color: #c1352f;
  font-weight: 800;
  margin-left: 2px;
}
.apply__help {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.apply__input,
.apply__textarea,
.apply__select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text-body);
  background: var(--surface-card);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 44px;
  line-height: 1.4;
}
.apply__input:focus,
.apply__textarea:focus,
.apply__select:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--color-bin-ink);
}
.apply__input[aria-invalid="true"],
.apply__textarea[aria-invalid="true"],
.apply__select[aria-invalid="true"] {
  border-color: #c1352f;
  background: #fff7f6;
}
.apply__textarea { min-height: 110px; resize: vertical; }
.apply__field-error {
  display: none;
  color: #c1352f;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 6px;
}
.apply__field-error[data-visible="true"] { display: block; }

/* Chip-style ZIP multi-input */
.apply__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  min-height: 44px;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  align-items: center;
  cursor: text;
}
.apply__chips:focus-within {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--color-bin-ink);
}
.apply__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-bin-ink);
  color: var(--color-bin-lime);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.apply__chip button {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0 0 0 4px;
  line-height: 1;
}
.apply__chip button:focus { outline: 2px solid var(--focus-ring); border-radius: 999px; }
.apply__chip-input {
  flex: 1;
  min-width: 80px;
  border: 0;
  outline: 0;
  font: inherit;
  padding: 4px;
  background: transparent;
  color: var(--text-body);
}

/* Segmented choice (own / share / rent equipment; Y/N insurance) */
.apply__segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.apply__segmented input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.apply__segmented label {
  position: relative;
  background: var(--surface-card);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.apply__segmented input[type="radio"]:checked + label {
  background: var(--color-bin-lime);
  border-color: var(--color-bin-ink);
  color: var(--color-bin-ink);
  box-shadow: 0 0 10px rgba(223, 255, 22, 0.4);
}
.apply__segmented input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Step panels — only one visible at a time */
.apply__panel { display: none; }
.apply__panel[data-active="true"] { display: block; }

/* Step actions row */
.apply__actions {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-6);
  flex-wrap: wrap;
}
.apply__actions .apply__actions-right {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.apply__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 10px;
  border: 3px solid var(--color-bin-ink);
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
  min-height: 44px;
  background: var(--surface-card);
  color: var(--color-bin-ink);
}
.apply__btn:hover { transform: translateY(-1px); }
.apply__btn:active { transform: translateY(2px); }
.apply__btn--primary {
  background: linear-gradient(180deg, #F4FF38 0%, #E2FF22 42%, #B5E402 100%);
  color: var(--color-bin-ink);
  box-shadow: 0 4px 0 var(--color-bin-black), 0 0 22px rgba(223, 255, 22, 0.45);
}
.apply__btn--primary[disabled],
.apply__btn--primary[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.7;
  box-shadow: none;
  transform: none;
}
.apply__btn--ghost {
  background: transparent;
  color: var(--text-body);
  border-color: var(--border-soft);
}
.apply__btn--ghost:hover { border-color: var(--color-bin-ink); }

/* Review panel */
.apply__review dl {
  margin: 0 0 var(--s-5);
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--s-2) var(--s-5);
}
.apply__review dt {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.apply__review dd { margin: 0; color: var(--text-body); }
.apply__review dd:empty::before { content: "—"; color: var(--text-muted); }
@media (max-width: 480px) {
  .apply__review dl { grid-template-columns: 1fr; gap: 0 var(--s-3); }
  .apply__review dt { margin-top: var(--s-3); }
  .apply__review dd:first-of-type { margin-top: 0; }
}

/* Visually hidden but available to screen readers.
   Shared rule so all SR-only spans (status, progress, chip-input labels)
   get the same treatment — keeps any future SR-only spans consistent. */
.apply__sr-only,
.apply__sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loading spinner (loading state) */
.apply__loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid var(--color-bin-ink);
  border-top-color: transparent;
  border-radius: 50%;
  animation: apply-spin 0.9s linear infinite;
  vertical-align: -2px;
  margin-right: 8px;
}
@keyframes apply-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .apply__loading { animation: none; border-top-color: var(--color-bin-ink); }
}

/* Success state */
.apply__success {
  background: var(--surface-card);
  border: 3px solid var(--color-bin-ink);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
  box-shadow: 6px 6px 0 var(--color-bin-black);
  text-align: center;
}
.apply__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bin-lime);
  color: var(--color-bin-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--s-4);
  box-shadow: 0 0 22px rgba(223, 255, 22, 0.5);
}
.apply__success-id {
  display: inline-block;
  background: var(--color-bin-ink);
  color: var(--color-bin-lime);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  margin-top: var(--s-3);
}
