/* Signup waitlist modal of m360m.ai and wiklik.ai (site_tpl/waitlist_sheet.html, signup-waitlist.js). Mobile first:
   a bottom sheet at 360–390 px that scrolls inside itself (never the page); from 720 px a centred card. Colours come
   from the site's theme tokens when present (wiklik theme.css), with neutral fallbacks for the m360m.ai pages.
   Keyboard (owner 2026-10-24): signup-waitlist.js writes --wl-kb (the on-screen keyboard's height, visualViewport) and
   --wl-vvh (the visible height); the sheet sits on top of the keyboard and never grows past what is visible. */
.wl {
  --wl-bg: var(--bg-card, #fff);
  --wl-ink: var(--ink, #0b0c0e);
  --wl-ink-2: var(--ink-2, #4a4f57);
  --wl-line: var(--line, #e3e5e8);
  --wl-soft: var(--bg-soft, #f3f4f6);
  --wl-accent: var(--accent, #1f6feb);
  --wl-accent-ink: var(--accent-ink, #fff);
  --wl-err: #b42318;
  padding: 0;
  border: 0;
  margin: auto auto var(--wl-kb, 0px);
  width: 100%;
  max-width: 100%;
  max-height: 92vh;
  max-height: min(92dvh, calc(var(--wl-vvh, 100dvh) - 8px));
  border-radius: 18px 18px 0 0;
  background: var(--wl-bg);
  color: var(--wl-ink);
  font-family: var(--font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  box-shadow: 0 -12px 40px rgba(10, 11, 13, .18);
  overflow: hidden;
}
/* The host pages style forms / lists: the sheet's own [hidden] steps always win. */
.wl [hidden] { display: none !important; }
.wl::backdrop { background: rgba(10, 11, 13, .55); }
.wl[open] { display: flex; flex-direction: column; animation: wl-up .22s ease-out; }
@keyframes wl-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wl[open] { animation: none; } }
.wl-in { overflow-y: auto; overscroll-behavior: contain; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
.wl-grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--wl-line); margin: -8px auto 12px; }
.wl-head { display: flex; align-items: flex-start; gap: 12px; }
.wl-head h2 { flex: 1; margin: 0; font-family: var(--font-display, inherit); font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.wl-x {
  flex: none; width: 40px; height: 40px; margin: -6px -6px 0 0; border: 0; border-radius: 50%;
  background: var(--wl-soft); color: var(--wl-ink-2); font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.wl-lead { margin: 6px 0 14px; color: var(--wl-ink-2); font-size: .95rem; line-height: 1.45; }
.wl-form { display: flex; flex-direction: column; }
.wl-lbl { margin: 4px 0 6px; font-size: .85rem; font-weight: 600; }
.wl-phone { display: flex; gap: 8px; }
.wl-cc, .wl-input {
  min-height: 44px; border: 1px solid var(--wl-line); border-radius: 10px; background: var(--wl-bg); color: var(--wl-ink);
  font: inherit; font-size: 1rem; padding: 0 12px; box-sizing: border-box;
}
.wl-cc { flex: none; width: 112px; padding: 0 6px; }
.wl-input { flex: 1; min-width: 0; width: 100%; }
.wl-hint { margin: 6px 0 10px; color: var(--wl-ink-2); font-size: .82rem; line-height: 1.4; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 10px; font-size: .88rem; line-height: 1.4; cursor: pointer; }
.wl-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--wl-accent); }
.wl-err { margin: 0 0 10px; color: var(--wl-err); font-size: .88rem; }
.wl-go {
  min-height: 48px; border: 0; border-radius: 12px; background: var(--wl-accent); color: var(--wl-accent-ink);
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; width: 100%;
}
.wl-go:disabled { opacity: .6; cursor: progress; }
/* "Entrar" of a number that already has an account: a link styled as the main button. */
a.wl-go { display: flex; align-items: center; justify-content: center; margin-top: 14px; text-decoration: none; box-sizing: border-box; }
.wl-go-2 { margin-top: 14px; background: var(--wl-soft); color: var(--wl-ink); }
.wl-note { margin: 10px 0 0; color: var(--wl-ink-2); font-size: .78rem; text-align: center; }
.wl-ok { margin: 4px 0 0; font-size: 1.1rem; font-weight: 700; }
.wl-act {
  flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--wl-line); border-radius: 10px;
  background: var(--wl-soft); color: var(--wl-ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.wl-acts { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.wl-x:focus-visible, .wl-go:focus-visible, .wl-act:focus-visible, .wl-cc:focus-visible, .wl-input:focus-visible {
  outline: 2px solid var(--focus, var(--wl-accent)); outline-offset: 2px;
}
@media (min-width: 720px) {
  .wl { margin: auto; max-width: 460px; max-height: 92vh; max-height: min(92dvh, var(--wl-vvh, 100dvh)); border-radius: 18px; }
  .wl-grab { display: none; }
  .wl-in { padding: 24px; }
}
/* Who the line is for, before the phone: 3 big targets, stacked on the phone, one row from 480 px. */
.wl-who-q { margin: 2px 0 10px; font-size: .95rem; }
.wl-who { display: grid; grid-template-columns: 1fr; gap: 8px; }
.wl-who-b {
  min-height: 52px; padding: 8px 14px; border: 1px solid var(--wl-line); border-radius: 12px; background: var(--wl-soft);
  color: var(--wl-ink); font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; cursor: pointer; text-align: center;
}
.wl-who-b:hover { border-color: var(--wl-accent); }
.wl-who-b[aria-pressed="true"] { border-color: var(--wl-accent); box-shadow: inset 0 0 0 1px var(--wl-accent); }
.wl-who-b:focus-visible, .wl-who-chg:focus-visible { outline: 2px solid var(--focus, var(--wl-accent)); outline-offset: 2px; }
@media (min-width: 480px) { .wl-who { grid-template-columns: repeat(3, 1fr); } }
.wl-who-chosen { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: .88rem; font-weight: 600; }
.wl-who-chg {
  min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--wl-accent); font: inherit; font-size: .88rem;
  font-weight: 600; text-decoration: underline; cursor: pointer;
}
.wl-code { letter-spacing: .3em; font-size: 1.25rem; text-align: center; }
/* Step 1 of wiklik.ai (owner 2026-10-25): the referral loop in three lines with an icon each, the row of AI models, the
   note on when credits arrive — read without the keyboard, mobile first (the logos wrap, never scroll the sheet sideways). */
.wl-pitch { margin: 6px 0 16px; display: grid; gap: 12px; }
.wl-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wl-perks li {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--wl-soft);
  font-size: .95rem; line-height: 1.4; font-weight: 600; color: var(--wl-ink);
}
.wl-ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: var(--wl-bg); display: flex;
  align-items: center; justify-content: center; font-size: 1.1rem; line-height: 1; }
.wl-models-t { margin: 2px 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--wl-ink-2); }
.wl-models { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wl-models li { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--wl-line); background: var(--wl-bg); font-size: .8rem; font-weight: 600; color: var(--wl-ink); direction: ltr; }
.wl-models img { width: 16px; height: 16px; object-fit: contain; }
.wl-perk-note { margin: 0; }
