/* Dark, like the "Take the next step" section of hustlefund.vc/squad (question B7, picked 2026-09-17), rounded corners.
   The page is near-black; the form and the nobody card are warm off-white panels on it. --ink is text on a panel, --dark-ink text on the page.
   Fonts are free stand-ins for the site's Aeonik and GT America Mono until their licence is confirmed, so only the weights those have: 400 and 700. */
:root {
  --ground: #111111;
  --surface: #f6f3f0;
  --surface-2: #ffffff;
  --line: #cfcdcc;
  --line-2: #3a3a3e;
  --ink: #111111;
  --ink-2: #3a3a3e;
  --ink-3: #6b6a6e;
  --ink-4: #6b6a6e;
  --accent: #f4ca66;
  --accent-hover: #f6d98f;
  --accent-ink: #111111;
  --accent-wash: rgba(244, 202, 102, 0.12);
  --live: #9ad88b;
  --live-ink: #9ad88b;
  --live-wash: rgba(154, 216, 139, 0.12);
  --live-line: rgba(154, 216, 139, 0.4);
  --panel-live: #5aa84a;
  --panel-live-ink: #466a3d;
  --panel-live-wash: #e4f1de;
  --panel-live-line: #b9dcae;
  --off: #8d8b8a;
  --off-wash: rgba(246, 243, 240, 0.06);
  --panel-off-wash: #ebe7e3;
  --wait: #e88149;
  --wait-wash: #fbe6d9;
  --fail: #d75856;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --dark-ink: #f6f3f0;
  --dark-ink-2: #a8a6a3;
  --dark-copy: #cfcdcc;
  --dark-link: #f4ca66;
  --backdrop: rgba(0, 0, 0, 0.72);
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --display: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--ground); color: var(--dark-ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; font-family: var(--display); }
p { margin: 0; }
[hidden] { display: none !important; }

/* Header bar */
.top { display: flex; align-items: center; gap: 10px; height: 76px; padding: 0 32px; background: var(--ground); border-bottom: 1px solid var(--line-2); }
.home { display: flex; align-items: center; }
.home img { height: 26px; width: auto; display: block; }
.back { margin-left: auto; font: 400 12px/1 var(--mono); color: var(--dark-ink); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.back:hover { color: var(--accent); }

/* Choose screen */
.choose { display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 48px 16px 64px; }
.hero { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; max-width: 760px; }
.eyebrow { font: 400 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font: 400 56px/1.02 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.hero p { font-size: 20px; line-height: 1.5; color: var(--dark-copy); max-width: 40ch; }
.hero .buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero .buttons .button { line-height: 1.3; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 1080px; }
.card { display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line-2); border-radius: 14px; padding: 32px; }
/* The lead card is the one whose button works: the live card, or the schedule card when nobody is free (B9, 2026-09-19). */
.card.lead { border-color: var(--accent); }
.card h2 { font: 400 28px/1.15 var(--display); letter-spacing: -0.01em; }
.card p { font-size: 17px; line-height: 1.5; color: var(--dark-copy); flex: 1; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-wash); color: var(--accent); display: flex; align-items: center; justify-content: center; }

/* Buttons, badges, dots */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 400 15px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; border-radius: 999px; min-height: 54px; padding: 0 28px; cursor: pointer; text-decoration: none; }
.button.primary { background: var(--accent); color: var(--accent-ink); border: 0; }
.button.primary:not([disabled]):hover { background: var(--accent-hover); }
.button.secondary { background: var(--surface); color: var(--ink); border: 0; }
.button.secondary:hover { background: var(--surface-2); color: var(--ink); }
.button.wide { width: 100%; }
.button[disabled] { opacity: 0.6; cursor: default; }
.card .button { margin-top: auto; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; font: 400 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 8px 12px; border: 1px solid transparent; }
.badge.live { color: var(--live-ink); background: var(--live-wash); border-color: var(--live-line); }
.badge.off, .badge.checking { color: var(--dark-copy); background: var(--off-wash); border-color: var(--line-2); }
/* On the off-white form the badge takes the panel's greens and greys. */
.dialog .badge.live { color: var(--panel-live-ink); background: var(--panel-live-wash); border-color: var(--panel-live-line); }
.dialog .badge.live .dot { background: var(--panel-live); }
.dialog .badge.off, .dialog .badge.checking { color: var(--ink-2); background: var(--panel-off-wash); border-color: var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); flex: none; }
.badge.off .dot { background: var(--off); }
.badge.checking .dot { background: transparent; border: 1.5px solid var(--off); }
.dot.ring { box-shadow: 0 0 0 2px var(--accent-ink); }
/* The "shining" dot: a green ring that grows and fades, on the live badge and the join button. */
.badge.live .dot, .button.primary.live .dot { animation: shine 1.8s ease-out infinite; }
.button.primary:not(.live) .dot { display: none; }
@keyframes shine {
  0% { outline: 2px solid rgba(154, 216, 139, 0.6); outline-offset: 0; }
  70%, 100% { outline: 2px solid rgba(154, 216, 139, 0); outline-offset: 6px; }
}

/* Modal layer */
/* The backdrop scrolls, not the dialog, so a tall form keeps its rounded corners; margin: auto centres a short dialog and lets a tall one start at the top. */
.backdrop { position: fixed; inset: 0; z-index: 10; background: var(--backdrop); display: flex; padding: 18px; overflow: auto; }
.dialog { position: relative; width: 100%; max-width: 640px; margin: auto; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.dialog h2 { font: 400 30px/1.2 var(--display); letter-spacing: -0.01em; }
.dialog .sub { font-size: 15px; color: var(--ink-2); margin-top: -8px; }
.dialog.narrow { max-width: 480px; }
.close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.close.light { color: var(--dark-ink-2); top: 6px; right: 6px; }

/* Form */
form { display: flex; flex-direction: column; gap: 14px; }
form label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ink-2); }
form input[type="text"], form input[type="email"], form input[type="tel"], form input[type="url"], form textarea, form select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--ink); font: 400 14.5px/1.5 var(--sans);
}
form input::placeholder, form textarea::placeholder { color: var(--ink-3); }
form textarea { min-height: 66px; resize: vertical; }
form input:focus, form textarea:focus, form select:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.req { color: var(--fail); }
.preamble { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
label.check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 8px; font-size: 15px; color: var(--ink); }
label.check input { margin: 4px 0 0; }
label.check .opt { flex: 1; }
label.check .error { flex-basis: 100%; }
.error { display: block; color: var(--fail); font-size: 12.5px; }
.error:empty { display: none; }
label.invalid input, label.invalid textarea, label.invalid select { border-color: var(--fail); }
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 12px; color: var(--ink-3); text-align: center; }
.fine.faint { color: var(--ink-4); font-size: 11.5px; }
#connect-button { margin-top: 10px; }

/* Finding */
.busy { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 34px 0 20px; }
.busy h3 { font: 400 22px/1.25 var(--display); letter-spacing: -0.01em; }
.busy p { font-size: 14px; color: var(--ink-2); max-width: 32ch; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Room frame */
/* The room fills the window (decided 2026-09-13); the stage takes whatever height the bar, the note and the footer leave. */
.backdrop.full { padding: 0; }
.frame { position: relative; width: 100%; height: 100%; overflow: auto; background: var(--dark); color: var(--dark-ink); display: flex; flex-direction: column; }
.frame a { color: var(--dark-link); }
.framebar { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 100px 6px 20px; font: 400 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--line-2); }
.barlink { margin-left: auto; text-decoration: none; white-space: nowrap; }
.close.fs { right: 50px; }
.note { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: var(--dark-2); }
.note span { display: flex; flex-direction: column; }
.note strong { font: 400 20px/1.3 var(--display); letter-spacing: -0.01em; }
.note small { font-size: 13px; color: var(--dark-ink-2); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--line-2); color: var(--dark-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.stage { position: relative; flex: 1; min-height: 280px; background: var(--dark-2); display: flex; align-items: center; justify-content: center; }
#embed-holder { flex: 1; align-self: stretch; }
#embed-holder:empty { display: none; }
#embed-holder whereby-embed { display: block; width: 100%; height: 100%; }
.nobody { position: relative; width: 100%; max-width: 430px; margin: 40px 16px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.nobody h3 { font: 400 24px/1.2 var(--display); letter-spacing: -0.01em; }
.nobody p { font-size: 14px; color: var(--ink-2); max-width: 34ch; }
.clock { width: 44px; height: 44px; border-radius: 50%; background: var(--wait-wash); color: var(--wait); display: flex; align-items: center; justify-content: center; }
.dialog .nobody { margin: 8px auto 0; padding: 8px 0 0; }
/* The rejection message (the client's pick, 2026-09-18): the nobody card as a dialog over the choose screen. */
.rejected { max-width: 520px; margin: auto; padding: 34px 32px; gap: 16px; }
.rejected .close { top: 6px; right: 6px; }
.rejected h3 { font-size: 28px; }
.rejected p { font-size: 15px; max-width: 44ch; }
.rejected .actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; margin-top: 6px; }
.rejected .button.secondary { background: var(--surface-2); border: 1px solid var(--line); }
/* Links on an off-white panel are ink, not the page's yellow; after .frame a so the card inside the room wins. */
.dialog a, .nobody a { color: var(--ink); }
.framefoot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 20px 18px; font-size: 12.5px; color: var(--dark-ink-2); text-align: center; }
.framefoot a { font-weight: 700; text-decoration: none; }
.help summary { cursor: pointer; color: var(--dark-link); }
.help p { margin-top: 6px; max-width: 56ch; }

@media (max-width: 640px) {
  .top { padding: 0 16px; height: 64px; }
  .home img { height: 22px; }
  .back span { display: none; }
  .choose { padding: 32px 16px 48px; }
  .hero h1 { font-size: 38px; }
  .cards { grid-template-columns: 1fr; }
  .backdrop { padding: 8px; }
  .dialog { padding: 22px 18px; }
}
