/* forms.css — the application and waiting-list forms.
   Lifted verbatim out of index.html when the forms moved off the homepage
   onto /founding and /waiting-list. index.html no longer has a form and
   does not load this file. One source of truth: edit here, not there. */

.formwrap{border:1px solid var(--line-2); border-radius:20px; padding:clamp(26px,4.5vw,48px); background:var(--surface)}
/* Two columns above 600px, one below — not auto-fit. auto-fit gave the
   founding form three columns and left the last field alone on a row of
   its own, while the waiting-list form next to it sat in two. Fixed
   columns make both forms line up and stay lined up as fields change. */
.fgrid{display:grid; grid-template-columns:1fr; gap:16px; margin-top:28px}
@media (min-width:600px){ .fgrid{grid-template-columns:repeat(2,1fr)} }
.f{display:flex; flex-direction:column; gap:7px}
.f.wide{grid-column:1 / -1}
.f label{font-size:13.5px; font-weight:500; color:var(--text)}
.f label .opt{color:var(--faint-text); font-weight:400}
/* Required marker. aria-hidden because the input's own required attribute is what
   assistive tech announces; the asterisk is a sighted-user convention only. */
.f label .req{color:#1E9FD4; font-weight:600; margin-left:2px}
/* worked example under a free-text label: shows the applicant what a useful answer
   looks like, so the ten can be judged on comparable information. */
.f .ex{display:block; font-size:12.5px; line-height:1.5; color:var(--faint-text);
  margin:-3px 0 1px; max-width:62ch}
.f input,.f select,.f textarea{
  font-family:var(--sans); font-size:15px; color:var(--text);
  background:var(--black); border:1px solid var(--line-2); border-radius:10px;
  padding:12px 14px; width:100%}
.f textarea{resize:vertical; min-height:88px; line-height:1.5}
.f select{appearance:none; cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size:5px 5px, 5px 5px; background-repeat:no-repeat; padding-right:38px}
.f input::placeholder,.f textarea::placeholder{color:var(--faint-text)}
.f input:focus,.f select:focus,.f textarea:focus{border-color:var(--white); outline:none}
.f .err{font-size:12.5px; color:#ff8f80; display:none}
.f.invalid input,.f.invalid select,.f.invalid textarea{border-color:#ff8f80}
.f.invalid .err{display:block}
.checks{display:flex; flex-wrap:wrap; gap:8px; margin-top:2px}
.chk{position:relative}
.chk input{position:absolute; opacity:0; width:1px; height:1px}
.chk span{display:inline-block; font-size:13.5px; color:var(--muted); cursor:pointer;
  border:1px solid var(--line-2); border-radius:999px; padding:8px 15px; background:var(--black)}
.chk input:checked + span{border-color:var(--white); color:var(--white); background:var(--surface-2)}
.chk input:focus-visible + span{outline:2px solid var(--white); outline-offset:2px}
.consent{display:flex; gap:11px; align-items:flex-start; margin-top:24px}
.consent input{margin-top:3px; width:17px; height:17px; accent-color:#fff; flex:none}
.consent label{font-size:13.5px; color:var(--muted); line-height:1.5}
.fsubmit{margin-top:26px; display:flex; gap:14px; align-items:center; flex-wrap:wrap}
.fnote{font-size:12.5px; color:var(--faint-text)}
.done{display:none; text-align:center; padding:12px 0}
.done h2{font-size:26px; font-family:var(--display); font-weight:700; letter-spacing:-.03em; margin-bottom:12px}
.done p{color:var(--muted); max-width:52ch; margin-inline:auto}
.is-done .fform{display:none}
.is-done .done{display:block}

@media (max-width:600px){
  /* the consent box was 17px square; the label is clickable via for= so the
     row is the real target, but the box itself was still fiddly to hit */
  .consent input[type="checkbox"]{width:22px; height:22px; flex:none}
  .consent{align-items:flex-start; gap:12px}
  .consent label{min-height:40px; display:flex; align-items:center}
}

/* ---- added with the two form pages ---- */
/* h2, so the page reads h1 -> h2 rather than skipping a level. Every
   property below is restated because legal.css styles bare h2 as a
   document heading with a rule above it. */
.fsec{font-family:var(--mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--faint-text); font-weight:500; margin:34px 0 -6px; padding-top:24px;
  border-top:1px solid var(--line)}
.fform > form > .fsec:first-child{margin-top:0; padding-top:0; border-top:0}
.page.wide{max-width:880px}
/* /founding opens on the fact that it is free; that clause is the page's
   headline claim and should not read as ordinary body text. */
.lede strong{color:var(--white); font-weight:600}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--sans); font-size:15px; font-weight:600; text-decoration:none;
  padding:14px 26px; border-radius:999px; border:1px solid transparent; cursor:pointer;
  transition:background .18s ease, border-color .18s ease, color .18s ease}
.btn-primary{background:var(--white); color:#000}
.btn-primary:hover{background:#d9dbde}
.btn-primary:disabled{opacity:.6; cursor:default}
.btn-ghost{background:transparent; color:var(--text); border-color:var(--line-2)}
.btn-ghost:hover{border-color:var(--white)}
.btns{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}
.formwrap .lede{margin-bottom:0}
