/* "Notify me" waitlist panel and form (assets/waitlist.js).
   Light paper surfaces; the status line keeps its height so nothing jumps. */
.wl {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px 48px; align-items: start;
  margin-top: 40px; padding: clamp(22px, 3.4vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 18px 40px rgba(16, 29, 46, 0.07);
}
.wl::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(90deg, #14b8a6, #0b4fb3); }
.wl-copy h2, .wl-copy h3 { font-size: clamp(24px, 2.6vw, 32px); }
.wl-copy > p:not(.wl-badge) { color: var(--muted); margin-top: 12px; font-size: 16.5px; }
.wl-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 12px 5px 10px; border-radius: 999px; background: #fff4dc; color: #7a4a00; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.wl-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e09a1a; box-shadow: 0 0 0 3px rgba(224, 154, 26, 0.22); }
.wl-free { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.wl-free a { display: flex; align-items: baseline; gap: 8px; color: var(--ink); font-weight: 600; font-size: 15.5px; text-decoration: none; }
.wl-free a::after { content: "\2192"; color: var(--blue); }
.wl-free a:hover { color: var(--blue); }
.wl-free span { color: var(--muted); font-weight: 500; }

.wl-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.wl-form label, .wl-form legend { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.wl-field { display: flex; gap: 10px; margin-top: 8px; }
.wl-field input {
  flex: 1 1 auto; width: 100%; min-width: 0; min-height: 50px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid #cfc6b6; border-radius: 999px;
}
.wl-field input:hover { border-color: #a99f8c; }
.wl-field input:focus-visible { outline: 3px solid #f4b740; outline-offset: 2px; border-color: var(--blue); }
.wl-field input[aria-invalid="true"] { border-color: #b42318; }
.wl-field .btn { flex: none; min-height: 50px; border: 0; cursor: pointer; font-family: var(--sans); background: var(--blue); color: #fff; }
.wl-field .btn:hover { background: var(--blue-deep); }
.wl-field .btn[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.wl-topics { border: 0; margin: 0; padding: 0; min-width: 0; }
.wl-topics legend { padding: 0; margin-bottom: 8px; }
.wl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-chip { position: relative; display: inline-flex; }
.wl-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wl-chip span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.wl-chip span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; flex: none; }
.wl-chip input:checked + span { border-color: var(--blue); background: #eef4ff; color: var(--blue-deep); }
.wl-chip input:checked + span::before { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--blue); }
.wl-chip input:focus-visible + span { outline: 3px solid #f4b740; outline-offset: 2px; }
.wl-chip:hover span { border-color: #a99f8c; }
.wl-form .wl-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 500; color: var(--muted); font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.wl-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.wl-consent a { color: var(--blue); font-weight: 600; }
.wl-form .wl-consent.is-invalid { color: #b42318; }
.wl-hp { display: none !important; }
.wl-status { min-height: 1.5em; font-size: 14.5px; font-weight: 600; margin: 0; }
.wl-status.is-error { color: #b42318; }
.wl-status.is-ok { color: #0a6b5e; }
.wl-fine { font-size: 13px; color: var(--muted); margin: -6px 0 0; }

.wl-done { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border-radius: var(--r-md); background: #effaf7; border: 1px solid #bfe9df; }
.wl-done:focus { outline: none; }
.wl-done:focus-visible { outline: 3px solid #f4b740; outline-offset: 3px; }
.wl-done-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0f9d8a; }
.wl-done-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wl-done h3, .wl-done p:first-child { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); }
.wl-done p { color: #24584f; font-size: 15.5px; margin-top: 4px; }
.wl-done .link { color: var(--blue); padding: 6px 0 0; font-size: 15px; }

/* Without scripts the form cannot post JSON; the noscript note says so. */
.wl-noscript { margin: 0; padding: 14px 16px; border-radius: var(--r-sm); background: var(--paper-2); color: var(--muted); font-size: 15px; }
@media (scripting: none) { .wl-form { display: none; } }

.wl-compact { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
@media (max-width: 860px) {
  .wl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .wl-field { flex-direction: column; }
  .wl-field .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-chip span { transition: none; }
}

/* /unsubscribe/ */
.unsub { padding: var(--hero-top) var(--gutter) var(--section-y); background: radial-gradient(800px 420px at 85% 0%, rgba(94, 234, 212, 0.1), transparent 60%), var(--paper); }
.unsub-card { max-width: 620px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 40px rgba(16, 29, 46, 0.07); }
.unsub-card h1 { font-size: clamp(28px, 4vw, 38px); }
.unsub-body { display: grid; gap: 18px; justify-items: start; min-height: 112px; margin-top: 16px; }
.unsub-body > p { color: var(--muted); font-size: 17px; }
.unsub-confirm { border: 0; cursor: pointer; font-family: var(--sans); background: var(--blue); color: #fff; }
.unsub-confirm:hover { background: var(--blue-deep); }
.unsub-home { color: var(--ink); }
.unsub .wl-done { justify-self: stretch; }
