/* MyCrobo waitlist — uses the site's own tokens from site.css
   (--forest, --deep, --ivory, --paper, --ink, --mint, --serif, --sans, --edge). */

.wl {
  position: relative;
  padding: clamp(90px, 10vw, 150px) var(--edge);
  background: var(--deep);
  color: var(--ivory);
  overflow: hidden;
}
.wl::before {            /* faint dot field, same texture as the signal strip */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(149, 211, 186, .1) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.wl__grid {
  position: relative; max-width: 1180px; margin: 0 auto;
  display: grid; gap: clamp(40px, 6vw, 96px); align-items: center;
}
@media (min-width: 960px) { .wl__grid { grid-template-columns: 1fr minmax(420px, 520px); } }

.wl .eyebrow { color: var(--mint); }
.wl h2 {
  margin: 0; font: 400 clamp(48px, 6.2vw, 96px)/.95 var(--serif);
  letter-spacing: -.035em; color: var(--ivory); max-width: 11ch;
}
.wl h2 em { font-style: normal; color: var(--mint); }
.wl__lede { margin: 26px 0 0; max-width: 40ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: #d6e2da; }
.wl__promise { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 44ch; }
.wl__promise li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 1.5; color: #c9d8cf; }
.wl__promise li::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); transform: translateY(-1px);
}

/* ---------- Social proof ---------- */
.wl-wall { margin-top: 40px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wl-wall[hidden] { display: none; }
.wl-faces { display: inline-flex; }
.wl-face {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font: 650 14px/1 var(--sans);
  border: 2px solid var(--deep); margin-left: -9px;
  animation: wl-pop .42s var(--ease) both;
}
.wl-face:first-child { margin-left: 0; }
.wl-face--more { background: #0f3d33; color: var(--mint); font-size: 11px; }
.wl-wall__text { min-width: 0; }
.wl-wall__count { margin: 0; font: 400 24px/1.15 var(--serif); color: var(--ivory); font-variant-numeric: tabular-nums; }
.wl-wall__ticker { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: #a9bdb2; min-height: 20px; transition: opacity .3s ease; }
.wl-wall__ticker:not(:empty)::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%;
  background: var(--mint); vertical-align: 1px; animation: status-ping 2s ease-out infinite;
}
.wl-preview { display: inline-block; margin-bottom: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(149,211,186,.14); color: var(--mint); font: 700 10px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Card ---------- */
.wl-card {
  background: var(--ivory); color: var(--ink);
  border-radius: 24px; padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55);
}
.wl-card h3 { margin: 0 0 6px; font: 500 30px/1.1 var(--serif); letter-spacing: -.01em; }
.wl-card__sub { margin: 0 0 24px; font-size: 15px; line-height: 1.5; color: #52695b; }

.wl-field { display: grid; gap: 8px; margin-bottom: 16px; }
.wl-field > span { font-size: 14px; font-weight: 650; }
.wl-field small { font-weight: 400; color: #5e6e64; }
.wl-input {
  width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 20px;
  border: 1px solid #c6cebf; border-radius: 999px; background: #fffdf7;
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.wl-input::placeholder { color: #7c8b81; }
.wl-input:focus { outline: none; border-color: var(--accent-ink, #1d6b58); box-shadow: 0 0 0 4px rgba(29, 107, 88, .14); }
.wl-input[aria-invalid="true"] { border-color: #a33b2b; }

.wl-choice { border: 0; padding: 0; margin: 4px 0 18px; }
.wl-choice legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 650; }
.wl-choice legend small { font-weight: 400; color: #5e6e64; }
.wl-choice__row { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-choice label { position: relative; }
.wl-choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wl-choice label span {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 12px;
  border: 1px solid #c6cebf; border-radius: 999px; background: #fffdf7;
  font: 600 14px/1 var(--sans); transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.wl-choice label span::before {
  content: ""; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%;
  border: 1.5px solid #8fa89a; transition: all .18s ease;
}
.wl-choice input:checked + span { background: #dce9e1; border-color: transparent; color: #0b4b3f; }
.wl-choice input:checked + span::before { border: 5px solid #1d6b58; background: #fff; }
.wl-choice input:focus-visible + span { outline: 3px solid #1d6b58; outline-offset: 2px; }

.wl-check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.wl-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #1d6b58; cursor: pointer; }
.wl-check small { color: #5e6e64; }

.wl-submit { width: 100%; margin-top: 10px; min-height: 56px; font-size: 17px; }
.wl-submit[disabled] { opacity: .6; cursor: progress; }
.wl-status { min-height: 20px; margin: 10px 0 0; font-size: 14px; line-height: 1.4; }
.wl-status[data-tone="error"] { color: #a33b2b; }
.wl-fine { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: #5e6e64; }
.wl-fine a { color: inherit; }

/* ---------- Success ---------- */
.wl-done { display: none; text-align: center; outline: none; }
.wl[data-state="done"] .wl-form { display: none; }
.wl[data-state="done"] .wl-done { display: block; animation: wl-rise .5s var(--ease) both; }
.wl-done__eyebrow { margin: 0; font: 700 11px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #1d6b58; }
.wl-done__pos { margin: 6px 0 4px; font: 400 clamp(64px, 9vw, 96px)/1 var(--serif); letter-spacing: -.03em; color: #0b4b3f; font-variant-numeric: tabular-nums; }
.wl-done h3 { margin: 6px 0 0; }
.wl-done__body { margin: 10px auto 0; max-width: 36ch; font-size: 15px; line-height: 1.55; color: #52695b; }
.wl-refer { margin-top: 28px; padding-top: 22px; border-top: 1px solid #d8dccf; text-align: left; }
.wl-refer h4 { margin: 0 0 4px; font: 650 16px/1.3 var(--sans); }
.wl-refer p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #52695b; }
.wl-link { display: flex; gap: 6px; align-items: center; padding: 5px 5px 5px 18px; border: 1px solid #d8dccf; border-radius: 999px; background: #f3efe2; }
.wl-link input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 13px/1.4 var(--sans); color: #3b5047; outline: none; }
.wl-link .button { min-height: 42px; padding: 0 18px; font-size: 14px; }
.wl-refer__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wl-refer__actions .button { min-height: 48px; font-size: 15px; }

.wl-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

@keyframes wl-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wl-rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .wl-face, .wl[data-state="done"] .wl-done, .wl-wall__ticker::before { animation: none !important; }
}

/* Hero: secondary waitlist link next to "Try it in 10 seconds" */
.hero-waitlist {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 4px;
  color: var(--ivory); font: 600 16px/1.2 var(--sans); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.hero-waitlist:hover { color: var(--mint); }
.hero-waitlist span { transition: transform .18s ease; }
.hero-waitlist:hover span { transform: translateX(3px); }
.hero-status [data-wl-count-badge] { color: var(--mint); }

/* Unsubscribe page */
.wl-page-card { max-width: 520px; margin: 0 auto; text-align: center; }
.wl-page-card p { color: #52695b; }
.wl-h1 { margin: 0; font: 400 clamp(52px, 7vw, 104px)/.95 var(--serif); letter-spacing: -.035em; color: var(--ivory); max-width: 11ch; }
.wl-h1 em { font-style: normal; color: var(--mint); }
.wl-card .wl-h1 { color: var(--ink); }

/* Big numbers: lining, tabular figures (the display face defaults to old-style) */
.wl-done__pos, .wl-wall__count, .hero-status [data-wl-count-badge] { font-variant-numeric: lining-nums tabular-nums; }
.wl-done__pos { letter-spacing: -.02em; }
/* Keep the floating "Try a reply" pill off the form while the waitlist is on screen */
.try-pill.wl-pill-away { opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease; }
.wl-page-card .wl-h1 { max-width: none; }
