/* The early access pages (/signup and after), on top of site.css. Colours come from site.css's variables. */

/* ui-b8: the sign-up page in two columns on a wide screen: the form on the reading line, how it works beside it.
   On a phone the form comes first and the steps follow. */
.doc > .ea-layout { max-width: none; }
.ea-layout { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 340px); gap: 72px; align-items: start; }
.doc .ea-intro { margin: -8px 0 28px; }
.ea-aside { position: sticky; top: 28px; padding: 24px 24px 8px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(13,26,48,.9), rgba(10,20,38,.6)); }
.doc .ea-aside h2 { margin: 0 0 18px; font-size: 18px; }
.doc .ea-aside .ea-steps > li { font-size: 15px; line-height: 1.55; color: var(--soft); }
.doc .ea-ask { margin: 8px 0 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 960px) {
  .ea-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ea-aside { position: static; }
}
.ea-steps { counter-reset: step; list-style: none; padding: 0 !important; margin: 0 0 8px !important; }
.ea-steps > li { counter-increment: step; position: relative; padding: 0 0 0 44px; margin: 0 0 16px; }
.ea-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; font: 600 14px/1 var(--display); color: var(--blue); }
.ea-steps strong { color: var(--frost); }
.ea-sub { margin: 10px 0 8px !important; padding-left: 20px !important; font-size: 15px !important; }

.ea-form { display: grid; gap: 22px; margin-top: 8px !important; }
.ea-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.ea-field > label, .ea-field > legend { display: block; padding: 0; font-size: 15px; font-weight: 600; color: var(--frost); margin: 0 0 8px; }
.doc .ea-hint { margin: -2px 0 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ea-form input:not([type="checkbox"]):not([type="radio"]) { display: block; width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(154,168,184,.45); background: rgba(5,11,24,.6); color: var(--frost); font: 16px var(--body); }
.ea-form input:focus-visible { outline-offset: 1px; border-radius: 14px; }
.ea-form [aria-invalid="true"] { border-color: var(--danger) !important; }
.ea-form fieldset[aria-invalid="true"] { border: 0 !important; }
.ea-handles { display: grid; gap: 8px; }
.ea-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ea-choice { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; color: var(--soft); cursor: pointer; }
.ea-choice:has(input:checked) { border-color: rgba(84,199,245,.6); background: rgba(84,199,245,.07); color: var(--frost); }
.ea-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.ea-consent { display: flex; align-items: flex-start; padding: 0; border: 0; line-height: 1.5; }
.ea-consent:has(input:checked) { background: none; }
.ea-consent input { margin-top: 2px; flex: none; }
.ea-tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.ea-tag.live { color: var(--green); border-color: rgba(94,242,178,.4); }
.ea-tag.approval { color: var(--blue); border-color: rgba(84,199,245,.4); }
.ea-form .btn { justify-self: start; min-width: 240px; }
.ea-form .btn.is-busy { cursor: progress; }
.ea-form .btn .rr-loader { margin-right: -2px; }
/* The ring in the busy button, as the app draws it (static/app.css); site pages don't load app.css. */
.rr-loader { display: inline-flex; flex: none; align-items: center; justify-content: center; line-height: 0; }
.rr-loader-ring { display: block; animation: rr-loader-spin 1.1s linear infinite; }
.rr-loader-arc { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 21 48.1; }
.rr-loader-blue { stroke: #1f8fc4; }
.rr-loader-green { stroke: #18a86b; stroke-dashoffset: -23; }
.rr-loader-purple { stroke: #6a4fd6; stroke-dashoffset: -46; }
@keyframes rr-loader-spin { to { transform: rotate(360deg); } }
@keyframes rr-loader-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .rr-loader-ring { animation: rr-loader-pulse 2.4s ease-in-out infinite !important; } }
/* site.css's .doc p would turn errors grey; this keeps them red. */
.doc .ea-form .field-error { margin: 8px 0 0; color: var(--danger); font-size: 14px; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) { .doc .ea-form .field-error { animation: rr-fade-up .25s var(--ease-out) both; } }
.ea-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ea-summary { margin: 0 0 24px; padding: 16px 18px; border-radius: 14px; background: rgba(255,155,155,.08); border: 1px solid rgba(255,155,155,.35); }
.ea-summary:focus { outline: 2px solid var(--danger); outline-offset: 3px; }
.doc .ea-summary h2 { margin: 0 0 10px; font-size: 18px; color: var(--danger); }
.doc .ea-summary ul { margin: 0; font-size: 15px; }
.doc .ea-summary li { margin: 0 0 4px; }
.doc .ea-summary a { color: var(--danger); }

/* Motion: fields and choices answer the pointer (site.css holds the rest). */
.ea-form input:not([type="checkbox"]):not([type="radio"]) { transition: border-color .2s, background-color .2s; }
.ea-form input:not([type="checkbox"]):not([type="radio"]):hover { border-color: rgba(154,168,184,.7); }
.ea-form input:not([type="checkbox"]):not([type="radio"]):focus { border-color: rgba(84,199,245,.75); }
.ea-choice { transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease-out); }
.ea-choice:hover { border-color: rgba(244,247,250,.3); }
.ea-choice:active { transform: scale(.97); }

@media (max-width: 760px) {
  .ea-choice { flex: 1 1 calc(50% - 8px); min-height: 44px; }
  .ea-consent { flex: 1 1 100%; }
  .ea-form .btn { justify-self: stretch; }
}
