/* CERP landing page, part 3: founding offer pitch + waitlist form (styled as an official application form).
   Tokens live in styles.css. */
.join { padding-block: var(--section-pad); background: var(--concrete); scroll-margin-top: 8px; }
.join__grid { display: grid; gap: 40px; align-items: start; }
.join .lede { color: var(--body); }
.next-steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: next; border-top: 3px solid var(--obsidian); }
.next-steps li { counter-increment: next; display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #B9C4C9; font-weight: 600; }
.next-steps li::before { content: counter(next, decimal-leading-zero); min-width: 1.3em; font: 800 30px/1 var(--font-display); color: var(--red-text); }

.join__card { background: var(--paper); box-shadow: var(--shadow-sheet); }
.wl, .wl__fleet { display: grid; gap: 20px; }
.wl { padding: 0 18px 24px; }
.wl__head { margin: 0 -18px; padding: 18px; background: var(--obsidian); color: #fff; border-bottom: 5px solid var(--red); }
.wl__head h3 { font-size: 30px; }
.wl__sub { margin-top: 6px; font-size: 15px; color: var(--on-dark); }
.wl__summary:empty { display: none; }
.wl__summary { padding: 12px 14px; border-left: 5px solid var(--red); background: #FBEAEA; color: var(--red-text); font-weight: 600; font-size: 15px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { padding: 0; font-weight: 600; font-size: 15px; }
.field legend { margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--body); }
.field input[type="text"], .field input[type="tel"], .field select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--field-border); border-radius: var(--radius); font: 16px var(--font); color: var(--obsidian); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:hover, .field select:hover { border-color: var(--obsidian); }
.field input:focus, .field select:focus { outline: none; border-color: var(--obsidian); box-shadow: 0 0 0 3px rgba(214,48,49,.35); }
.field input::placeholder { color: #6B7579; }
.field__help { font-size: 14px; color: var(--body); }
.field__error { font-size: 14px; font-weight: 600; color: var(--red-text); }
.field__error:empty { display: none; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red-text); }

/* Radio choices as square tick-boxes on a form, not pills. */
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--field-border); border-radius: var(--radius); font-weight: 500; font-size: 15px; background: #fff; transition: background .15s, color .15s, border-color .15s; }
.option span::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid var(--steel); transition: background .15s, border-color .15s; }
.option:hover span { border-color: var(--obsidian); }
.option input:checked + span { background: var(--obsidian); border-color: var(--obsidian); color: #fff; }
.option input:checked + span::before { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 2px var(--obsidian); }
.option input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.field.is-invalid .option span { border-color: var(--red-text); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl__privacy { margin-top: -6px; font-size: 14px; color: var(--body); }

/* Success: the end of the journey gets a proper moment. */
.wl-done { display: grid; gap: 12px; justify-items: start; padding: 28px 20px; border-top: 5px solid var(--red); }
.wl-done__mark { display: grid; place-items: center; width: 60px; height: 60px; background: var(--red); color: #fff; animation: pop .5s var(--ease) both; }
.wl-done__mark .ico { width: 32px; height: 32px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.wl-done h3 { font-size: 32px; }
.wl-done h3:focus { outline: none; }
.wl-done p { color: var(--body); }
.wl-done .wl-done__share { font-weight: 600; color: var(--obsidian); }
.wl-done__actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (min-width: 720px) {
  .wl { padding: 0 32px 32px; }
  .wl__head { margin: 0 -32px; padding: 22px 32px; }
  .wl-done { padding: 40px 32px; }
}
@media (min-width: 1000px) {
  .join__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; }
  .join__pitch { position: sticky; top: 32px; }
}
