/* /invite (R82): one card — the four questions, then the thank-you in the same place */
.bar .apply[aria-current="page"] { display: none; }
.iv { padding-top: 80px; padding-bottom: 96px; }
.iv > * { max-width: 600px; margin-left: auto; margin-right: auto; }
.iv :focus-visible { outline: 2px solid #0EA5E9; outline-offset: 2px; }
.iv [hidden] { display: none !important; }
.iv button { font: inherit; color: inherit; }
.iv-h1 { font-family: var(--f-display); font-size: 48px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; }
.iv-sub { margin-top: 12px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.iv-sub b { color: var(--ink); font-weight: 500; }
.iv-f25 { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

.iv-card { margin-top: 32px; padding: 28px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px rgba(28,25,23,.06), 0 1px 2px rgba(28,25,23,.04), 0 18px 40px -28px rgba(28,25,23,.18); }
.iv-form { display: grid; gap: 26px; }
.iv-form.out, .iv-done.out { opacity: 0; transform: translateY(-4px); transition: opacity 160ms var(--e-out), transform 160ms var(--e-out); }
.iv-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.iv-l { display: block; padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.iv-l span { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.iv-q input[type=email], .iv-q input[type=text] { width: 100%; height: 46px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--rule-2); background: var(--white); font: 15px var(--sans); color: var(--ink); transition: border-color 150ms var(--e-out), box-shadow 150ms var(--e-out); }
.iv-q input::placeholder { color: var(--ink-4); }
.iv-q input:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 4px rgba(28,25,23,.06); }
.iv-q input[aria-invalid=true] { border-color: #DC2626; }
.iv-e { margin-top: 7px; font-size: 13px; color: #B91C1C; }
.iv-e:not([hidden]) { animation: iv-in 180ms var(--e-out); }
@keyframes iv-in { from { opacity: 0; transform: translateY(-3px); } }

/* chips: real radios/checkboxes underneath */
.iv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.iv-chip { position: relative; cursor: pointer; }
.iv-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.iv-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--rule-2); background: var(--white); font-size: 14px; color: var(--ink-2); transition: background-color 150ms var(--e-out), border-color 150ms var(--e-out), color 150ms var(--e-out), transform 160ms var(--e-out); }
.iv-chip:hover span { border-color: var(--ink-3); color: var(--ink); }
.iv-chip:active span { transform: scale(0.96); }
.iv-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.iv-chip input:focus-visible + span { outline: 2px solid #0EA5E9; outline-offset: 2px; }
.iv-q.bad .iv-chip span { border-color: #FCA5A5; }

.iv-subrow { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #F7F6F2; }
.iv-subrow:not([hidden]) { animation: iv-open 200ms var(--e-out); }
@keyframes iv-open { from { opacity: 0; transform: translateY(-4px); } }
.iv-subl { display: block; margin-bottom: 8px; font-size: 12.5px; color: var(--ink-3); }
.iv-subrow .iv-chip span { min-height: 32px; font-size: 13px; }
.iv-more { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px dashed var(--rule-2); background: none; font-size: 13.5px !important; color: var(--ink-3) !important; cursor: pointer; transition: border-color 150ms var(--e-out), color 150ms var(--e-out), transform 160ms var(--e-out); }
.iv-more:hover { border-color: var(--ink-3); color: var(--ink) !important; }
.iv-more:active { transform: scale(0.96); }
.iv-chips { gap: 6px; }
.iv-chip span { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.iv-q input.iv-ot { margin-top: 10px; }
.iv-q input.iv-ot:not([hidden]) { animation: iv-in 180ms var(--e-out); }

/* consent */
.iv-ok { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.iv-ok input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.iv-box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1px solid var(--rule-2); background: var(--white); transition: background-color 150ms var(--e-out), border-color 150ms var(--e-out); }
.iv-box svg { width: 13px; height: 13px; fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 220ms var(--e-out); }
.iv-ok input:checked + .iv-box { background: var(--ink); border-color: var(--ink); }
.iv-ok input:checked + .iv-box svg { stroke-dashoffset: 0; }
.iv-ok input:focus-visible + .iv-box { outline: 2px solid #0EA5E9; outline-offset: 2px; }
.iv-ok small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }

/* Apply, and the line under it if sending fails */
.iv-gow { display: grid; }
.iv-send { margin-top: 10px; }
.iv-go { height: 48px; border: 0; border-radius: 12px; background: var(--ink); color: var(--white) !important; font-size: 15.5px !important; font-weight: 500; cursor: pointer; transition: transform 160ms var(--e-out), opacity 150ms var(--e-out); }
.iv-go:active { transform: scale(0.98); }
.iv-go:disabled { opacity: .55; cursor: default; transform: none; }
.iv-fine { margin-top: -14px; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.iv-fine a, .iv-link { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-2); background: none; border: 0; padding: 0; cursor: pointer; }
.iv-fine a:hover, .iv-link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.iv-sub-only { margin-top: -20px; }

/* thank-you */
.iv-done { outline: none; }
.iv-done:not([hidden]) { animation: iv-in 260ms var(--e-out); }
.iv-tick { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ok-tint); }
.iv-tick svg { width: 20px; height: 20px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.iv-done:not([hidden]) .iv-tick svg { animation: iv-draw 380ms 120ms var(--e-out) forwards; }
@keyframes iv-draw { to { stroke-dashoffset: 0; } }
.iv-h2 { margin-top: 18px; font-family: var(--f-display); font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.iv-steps { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: s; }
.iv-steps li { position: relative; display: grid; gap: 2px; padding-left: 36px; counter-increment: s; }
.iv-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rule-2); font: 500 12px/24px var(--sans); text-align: center; color: var(--ink-2); }
.iv-steps b { font-size: 15px; font-weight: 500; }
.iv-steps span { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.iv-wait { margin-top: 26px; }
.iv-done .iv-fine { margin-top: 8px; }
.iv-done .iv-wait { margin-top: 26px; }

@media (max-width: 640px) {
  .iv { padding-top: 44px; }
  .iv-h1 { font-size: 36px; }
  .iv-card { padding: 20px 16px; margin-top: 26px; }
  .iv-chip span { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .iv-e, .iv-done, .iv-subrow { animation: none !important; }
  .iv-done .iv-tick svg { animation: none; stroke-dashoffset: 0; }
  .iv-form.out { transition: none; }
}
