/* Open Brief waitlist, one screen. HYAD V2 tokens: #0D0D0D ink on #00FF97, Helvetica Neue. */
:root {
  --green: #00FF97;
  --ink: #0D0D0D;
  --ink-2: #04291A;
  --ink-soft: rgba(13, 13, 13, 0.62);
  --line: rgba(13, 13, 13, 0.28);
  --white: #FFFFFF;
  --panel: #0D0D0D;
  --panel-line: rgba(255, 255, 255, 0.16);
  --grey: #DDE4E9;
  --muted: #A3ACB1;
  --err: #7A1416;
  --gutter: 40px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--green); }
body {
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  background: var(--green); color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.45; overflow-x: clip;
}
::selection { background: var(--ink); color: var(--green); }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* top and foot */
.top, .foot { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); }
.top { height: 76px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.mark svg { width: 26px; height: 26px; }
.by { font-size: 13px; color: var(--ink-2); }
.by b { font-weight: 700; margin-left: 2px; color: var(--ink); }
.foot { height: 56px; font-size: 13px; color: var(--ink-2); }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* the one screen */
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px var(--gutter) 24px; }
h1 { font-size: clamp(64px, min(12.5vw, 20svh), 188px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 700; }
.lede { margin-top: 24px; max-width: 34em; font-size: 19px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.join { width: 100%; max-width: 620px; margin-top: 32px; }

/* form */
.roles { border: 0; }
.roles legend { width: 100%; margin-bottom: 10px; font-size: 13px; color: var(--ink-2); text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; user-select: none; transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out, transform .15s ease-out; } /* taste-skill-ignore: form control */
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.chip:active span { transform: scale(0.97); }
.why { min-height: 44px; margin: 12px auto 0; max-width: 32em; font-size: 15px; line-height: 22px; color: var(--ink); text-wrap: balance; }
.why.idle { color: var(--ink-soft); }
.row { display: flex; gap: 6px; margin-top: 8px; padding: 6px; background: var(--white); border: 1px solid var(--white); border-radius: 16px; transition: border-color .15s ease-out; } /* taste-skill-ignore: form control */
.row:focus-within { border-color: var(--ink); }
.row:has(.email[aria-invalid="true"]) { border-color: var(--err); }
.email { flex: 1; min-width: 0; height: 56px; padding: 0 16px; border: 0; border-radius: 11px; background: transparent; font-size: 17px; color: var(--ink); }
.email::placeholder { color: #6B706D; }
.email:focus { outline: none; }
.go { height: 56px; padding: 0 28px; border: 0; border-radius: 11px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 17px; white-space: nowrap; cursor: pointer; transition: transform .15s ease-out, background-color .15s ease-out; }
.go:hover { background: #262626; }
.go:active { transform: scale(0.97); }
.go[disabled] { cursor: progress; opacity: 0.8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* taste-skill-ignore: spam trap, never seen */
.err { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--err); }
.err:empty { display: none; }
.note { margin-top: 12px; font-size: 13px; color: var(--ink-2); }

/* done, a dark card on the green */
.done { text-align: left; background: var(--panel); color: var(--white); border-radius: 16px; padding: 26px; outline: none; }
.done-k { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--green); }
.tick { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green); }
.tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid var(--ink-2); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.done-h { margin-top: 10px; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.done-h b { font-weight: 600; }
.link-box { margin-top: 22px; }
.link-k { font-size: 15px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.link-l { font-size: 15px; font-weight: 400; color: var(--white); }
.link-row { display: flex; gap: 8px; margin-top: 12px; }
.link { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 10px; background: #161616; border: 1px solid var(--panel-line); font-size: 15px; color: var(--white); font-variant-numeric: tabular-nums; } /* taste-skill-ignore: form control */
.copy, .share, .save { height: 48px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--panel-line); background: transparent; color: var(--white); font-weight: 600; font-size: 15px; cursor: pointer; transition: border-color .15s ease-out, transform .15s ease-out; } /* taste-skill-ignore: form control */
.copy, .share.primary { background: var(--green); color: var(--ink-2); border-color: var(--green); }
.copy.secondary { background: transparent; color: var(--white); border-color: var(--panel-line); }
.copy:active, .share:active, .save:active { transform: scale(0.97); }
.share:hover, .save:hover { border-color: rgba(255, 255, 255, 0.45); }
.done :focus-visible { outline-color: var(--green); }
.more { margin-top: 18px; }
.more summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--panel-line); font-weight: 400; } /* taste-skill-ignore: form control */
.more[open] summary::before { content: "\2212"; }
.more summary span { color: var(--muted); font-weight: 400; }
.more-f { display: grid; gap: 12px; margin-top: 14px; }
.more-f label { display: grid; gap: 6px; font-size: 13px; color: var(--white); }
.more-f input { height: 48px; padding: 0 14px; border-radius: 10px; background: #161616; border: 1px solid var(--panel-line); font-size: 15px; color: var(--white); } /* taste-skill-ignore: form control */
.more-f input:focus { outline: none; border-color: var(--green); }
.save { justify-self: start; }
.saved { font-size: 15px; color: var(--green); }
.saved:empty { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* phone */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .top { height: 60px; }
  .mark { font-size: 17px; }
  .mark svg { width: 24px; height: 24px; }
  .foot { height: 44px; }
  .hero { padding-top: 0; padding-bottom: 12px; }
  h1 { font-size: clamp(56px, 17vw, 84px); }
  .lede { margin-top: 14px; font-size: 16px; line-height: 1.45; }
  .join { margin-top: 20px; }
  .roles legend { margin-bottom: 8px; }
  .chips { gap: 6px; }
  .chip span { height: 40px; padding: 0 14px; font-size: 14px; }
  .why { min-height: 40px; margin-top: 10px; font-size: 14px; line-height: 20px; }
  .row { flex-direction: column; gap: 8px; padding: 0; background: none; border: 0; }
  .row:focus-within { border-color: transparent; }
  .email { flex: none; width: 100%; height: 52px; background: var(--white); border: 1px solid var(--white); border-radius: 12px; } /* taste-skill-ignore: form control */
  .email:focus { border-color: var(--ink); }
  .row:has(.email[aria-invalid="true"]) .email { border-color: var(--err); }
  .go { width: 100%; height: 52px; }
  .note { margin-top: 10px; }
  .done { padding: 20px 18px; }
  .done-h { font-size: 17px; }
  .link-row { flex-wrap: wrap; }
  .link { flex-basis: 100%; }
  .copy, .share { flex: 1; }
}
/* short laptop screens */
@media (min-width: 641px) and (max-height: 760px) {
  .top { height: 64px; }
  .lede { margin-top: 16px; font-size: 17px; }
  .join { margin-top: 22px; }
}

/* once joined, the card takes the explainer's place so it still fits one screen */
.is-done .lede { display: none; }
.is-done .join { margin-top: 24px; }
/* small phones */
@media (max-width: 640px) and (max-height: 700px) {
  .top { height: 52px; }
  h1 { font-size: clamp(52px, 15vw, 64px); }
  .lede { margin-top: 10px; font-size: 15px; }
  .join { margin-top: 14px; }
  .chip span { height: 38px; }
  .why { min-height: 40px; margin-top: 8px; }
  .email, .go { height: 48px; }
  .foot { height: 40px; }
  .is-done h1 { font-size: 48px; }
  .done { padding: 16px; }
  .link-box { margin-top: 14px; padding-top: 14px; }
  .more { margin-top: 12px; }
}
@media (max-width: 640px) { .foot { font-size: 12px; gap: 12px; } }
.lede b { font-weight: 700; color: var(--ink); }
/* entrance: the headline lands, then the line under it, then the form. Transform and opacity only */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero > h1 { animation-duration: 900ms; }
  .hero > .lede { animation-delay: 120ms; }
  .hero > .join { animation-delay: 220ms; }
  .is-done .done { animation: rise 500ms cubic-bezier(0.22, 1, 0.36, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .foot { font-size: 13px; } }
@media (max-width: 640px) and (min-height: 760px) { .lede { font-size: 18px; } }
@media (max-width: 640px) { .lede, .note, .foot p { text-wrap: balance; } }
/* the optional details stay on one screen: the headline steps aside while they are open */
.save { background: var(--green); color: var(--ink-2); border-color: var(--green); }
/* legibility, 12 Nov: every line in full ink and heavier, so nothing reads as faint on the green */
:root { --ink-2: #0D0D0D; --ink-soft: #0D0D0D; --line: #0D0D0D; }
.lede { font-weight: 500; }
.lede b { font-weight: 700; }
.roles legend { font-size: 15px; font-weight: 700; }
.chip span { font-weight: 600; border-width: 1.5px; }
.chip input:checked + span { font-weight: 600; }
.why { font-weight: 600; }
.why.idle { font-weight: 500; }
.note { font-size: 15px; font-weight: 600; }
.by { font-size: 14px; font-weight: 500; }
.foot { font-size: 14px; font-weight: 600; }
.email::placeholder { color: #50554F; }
@media (max-width: 640px) { .roles legend { font-size: 14px; } .note { font-size: 14px; } .foot { font-size: 13px; } }
/* the first sentence sits on a black marker band, like a text highlight, 12 Nov */
.lede b { background: var(--ink); color: var(--green); padding: 1px 6px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede b::selection { background: var(--green); color: var(--ink); }
/* the highlighted sentence takes its own centred line under the headline; the explainer sits below it */
.lede .rest { display: block; margin-top: 14px; }
@media (max-width: 640px) { .lede .rest { margin-top: 10px; } }
@media (max-width: 640px) and (max-height: 700px) { .lede .rest { margin-top: 6px; } }
.lede .rest { text-wrap: balance; }

.foot b { font-weight: 700; background: var(--ink); color: var(--green); padding: 1px 6px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

@media (min-width: 900px) { .lede { max-width: 44em; } }
.mark:focus, .mark:focus-visible { outline: none; }
