/* "Join the waitlist" buttons and form (see waitlist.js). */
button.cta { background: none; cursor: pointer; font: inherit; font-family: var(--font-mono); font-size: 12px; }
button.cta.ask:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
/* Taps register straight away (no double-tap-zoom wait) and hover colours stay on mouse devices,
   so a tapped toggle never looks picked when it isn't. */
[data-waitlist], .il button, .wl button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (hover: none) { .cta.ask:hover { background: none; color: #ffb59b; } }

.wl { margin: auto; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border: 2px solid var(--coral); border-radius: 22px;
  background: var(--forest-deep); color: var(--mint-text); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
.wl::backdrop { background: rgba(20, 36, 19, .72); }
.wl form, .wl .wl-done { display: flex; flex-direction: column; gap: 16px; padding: 0 24px 24px; }
.wl h2:focus { outline: none; }
.wl h2 { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; text-transform: uppercase; color: var(--mint); padding-right: 32px; }
.wl h2 em { font-style: normal; color: var(--coral); }
.wl p { color: var(--mint-dim); }
.wl label { display: flex; flex-direction: column; gap: 6px; }
.wl label > span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.wl label small { font-size: 13px; color: var(--mint-dim); }
.wl ::placeholder { color: var(--mint-dim); opacity: .7; }
.wl label > span i { font-style: normal; color: var(--mint-dim); }
.wl input, .wl textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--forest);
  color: var(--mint-text); font: inherit; }
.wl textarea { min-height: 84px; resize: vertical; }
.wl input:focus, .wl textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 2px rgba(255, 138, 101, .35); }
.wl .wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl .wl-submit { align-self: stretch; justify-content: center; border: 0; background: var(--coral); color: var(--forest); font-weight: 500; }
.wl .wl-submit:hover { background: #ffa384; }
.wl .wl-submit[disabled] { opacity: .6; cursor: progress; }
.wl .wl-error { color: #ffb59b; font-size: 14px; }
.wl .wl-error a { color: inherit; text-decoration: underline; }
.wl .wl-error:empty { display: none; }
/* Close button stays pinned at the top while the form scrolls. */
.wl .wl-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 10px 10px 0; background: var(--forest-deep); }
.wl .wl-close { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: none; color: var(--mint-dim); font-size: 22px; line-height: 1; cursor: pointer; }
.wl .wl-close:hover { color: var(--mint); background: rgba(146,237,193,.08); }
.wl .wl-close:focus-visible { outline: 2px solid var(--coral); }
.wl .wl-done .cta { align-self: flex-start; border: 2px solid var(--coral); color: #ffb59b; }
.wl [hidden], .wl .wl-done[hidden] { display: none; }

/* "I'm interested" toggle, picked state */
button.cta.ask[aria-pressed="true"] { background: var(--coral); color: var(--forest); }

/* Interest list: side panel on desktop, bottom bar on phones */
.il { position: fixed; z-index: 20; right: 20px; bottom: 20px; width: 260px; padding: 16px; border: 2px solid var(--coral); border-radius: 18px;
  background: var(--forest-deep); color: var(--mint-text); box-shadow: 0 12px 32px rgba(0,0,0,.35); font-family: var(--font-body);
  display: flex; flex-direction: column; gap: 12px; }
.il[hidden] { display: none; }
.il h2 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.il-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px;
  background: var(--coral); color: var(--forest); font-size: 11px; }
.il-items { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow-y: auto; }
.il-items li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.il-items a { color: var(--mint-text); text-decoration: none; font-size: 15px; }
.il-items a:hover { color: var(--mint); text-decoration: underline; }
.il-remove { width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--mint-dim); font-size: 18px; cursor: pointer; }
.il-remove:hover { color: var(--mint); background: rgba(146,237,193,.08); }
.il-remove:focus-visible, .il-items a:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.il .il-send { justify-content: center; border: 0; background: var(--coral); color: var(--forest); font-weight: 500; cursor: pointer; }
.il .il-send:hover { background: #ffa384; }
.il .il-send:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.il-bump { animation: il-bump .35s ease-out; }
@keyframes il-bump { 40% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .il-bump { animation: none; } }

@media (max-width: 720px) {
  .il { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 10px 12px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .il-head { flex: 1 1 auto; }
  .il-items { order: 3; flex: 1 0 100%; flex-direction: row; overflow-x: auto; max-height: none; gap: 6px; }
  .il-items li { flex: none; padding-left: 10px; border: 1px solid var(--line); border-radius: 999px; }
  .il-items a { font-size: 14px; white-space: nowrap; }
  .il .il-send { flex: none; min-height: 40px; padding: .5rem 1rem; }
  html.has-il #growing { padding-bottom: 120px; }
  /* Phones: the form opens as a sheet from the top and scrolls inside itself, so the keyboard
     never pushes it off screen and nothing snaps back to the middle. */
  .wl { margin: 8px auto auto; width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .wl form, .wl .wl-done { gap: 12px; padding: 0 18px 20px; }
  .wl h2 { font-size: 28px; }
  .wl textarea { min-height: 64px; }
}
