/* ==========================================================================
   The waitlist home page (Adrian, 2026-10-25) — index.html and pl/index.html.
   Loaded after styles.css and calendar-page.css; every rule is prefixed wl-.
   Hero with the team of agents and one email field, then four steps: on a wide screen with
   scripts, the list on the left and one picture on the right that moves on by
   itself (assets/js/waitlist.js); without scripts and on phones, each step
   with its own picture underneath.
   ========================================================================== */

/* ---- Hero ---------------------------------------------------------------- */
.wl-page .mc-hero.wl-hero { padding: 76px 0 40px; }
.wl-hero-copy { max-width: 900px; margin: 0 auto; text-align: center; }
.wl-page .wl-hero h1 { font-size: clamp(2.05rem, 4.7vw, 3.9rem); margin-bottom: 24px; text-wrap: balance; }
.wl-h1-line { display: block; margin-top: 0.12em; }
.wl-page .wl-hero .lead { max-width: 660px; margin: 0 auto; text-wrap: pretty; }

/* ---- The agents (assets/js/myra-avatar.js) ------------------------------- */
/* The box is the body's; the drawing is 1.5× it, centred, with room for hops and sparkles. */
.myra-av { position: relative; display: inline-block; flex: none; width: 48px; height: 48px; vertical-align: middle; }
.myra-av > svg, .myra-av > img { position: absolute; left: -25%; top: -25%; width: 150%; height: 150%; max-width: none; overflow: visible; pointer-events: none; }
.mc-eyebrow-pill .myra-av-pill { width: 24px; height: 24px; }

.wl-team { display: flex; flex-direction: column; align-items: center; margin: 32px auto 0; }
.wl-team-row { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin-top: 20px; }
.wl-agent { width: 76px; height: 76px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wl-agent-lead { width: 104px; height: 104px; z-index: 1; }

.wl-bubble {
  position: relative; max-width: min(540px, 100%); margin: 0; padding: 13px 20px 14px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-soft); font-size: 1rem; line-height: 1.5;
  box-shadow: 0 18px 44px -26px rgba(var(--shade), calc(0.9 * var(--shade-k)));
}
/* The tail, under whoever speaks (--tail-x from waitlist.js). */
.wl-bubble::after {
  content: ""; position: absolute; left: var(--tail-x, 50%); bottom: -7px; width: 13px; height: 13px; margin-left: -6.5px;
  background: var(--surface); border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transform: rotate(45deg);
  transition: left 0.35s var(--ease);
}
.wl-bubble-who { color: var(--ink); font-weight: 700; }
.wl-bubble[data-who="myra"] .wl-bubble-who { color: var(--violet); }
.wl-bubble[data-who="sales"] .wl-bubble-who { color: #E08A1E; }
.wl-bubble[data-who="projects"] .wl-bubble-who { color: var(--blue); }
.wl-bubble.is-new { animation: wl-pop 0.4s var(--ease); }
@keyframes wl-pop { from { opacity: 0.2; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }

.wl-join { position: relative; max-width: 580px; margin: 26px auto 0; scroll-margin-top: 150px; }
/* #pricing: where the old links to the full page's pricing land. */
.wl-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; scroll-margin-top: 150px; }

.wl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wl-field {
  display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -30px rgba(var(--shade), calc(0.9 * var(--shade-k)));
  transition: border-color 0.18s, box-shadow 0.18s;
}
.wl-field:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(169,139,255,0.2), 0 24px 60px -30px rgba(var(--shade), calc(0.9 * var(--shade-k))); }
.wl-field input {
  flex: 1; min-width: 0; height: 52px; padding: 0 12px 0 22px; border: 0; background: transparent;
  color: var(--ink); font-size: 1.06rem; letter-spacing: -0.01em; outline: none;
}
.wl-field input::placeholder { color: var(--ink-faint); }
.wl-submit { flex: none; padding: 15px 28px; }
.wl-submit:disabled { cursor: progress; opacity: 0.72; transform: none; }
.wl-form.is-invalid .wl-field { border-color: var(--mc-danger); box-shadow: 0 0 0 4px rgba(242,107,107,0.16); }

.wl-error { margin: 14px 0 0; color: var(--mc-danger); font-size: 0.93rem; font-weight: 600; }
.wl-consent { max-width: 500px; margin: 16px auto 0; color: var(--ink-dim); font-size: 0.85rem; line-height: 1.55; }
.wl-consent a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* The honeypot: off screen, out of the tab order, hidden from screen readers. */
.wl-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.wl-done {
  padding: 34px 30px 32px; border-radius: var(--r-lg); text-align: center; outline: none;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -30px rgba(var(--shade), calc(0.9 * var(--shade-k)));
  animation: wl-rise 0.5s var(--ease) both;
}
/* Focus moves here only so a screen reader reads the thanks; no ring needed. */
.wl-page .wl-done:focus, .wl-page .wl-done:focus-visible { outline: none; border-radius: var(--r-lg); }
/* calendar-page.css squares every focused control to 10px; the pill stays a pill. */
.wl-page .wl-submit:focus-visible, .wl-page .cta-band .btn:focus-visible { border-radius: 999px; }
.wl-done-ic { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad-cta); color: #fff; }
.wl-done-ic .ic { width: 24px; height: 24px; stroke-width: 2.2; }
.wl-done-title { color: var(--ink); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.wl-done-text { margin-top: 8px; color: var(--ink-soft); line-height: 1.55; }
.wl-done-text b { color: var(--ink); overflow-wrap: anywhere; }
@keyframes wl-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.wl-page .wl-trust { justify-content: center; margin-top: 34px; }

/* ---- How it works: each step, then its picture (phones, and without JS) --- */
.wl-page .section.wl-how { padding-top: 120px; }
.wl-how .wrap { max-width: 1440px; }
.wl-page .section-head h2, .wl-page .cta-band h2 { text-wrap: balance; }
.wl-steps { margin: 0 auto; }
.wl-step + .wl-step { margin-top: 72px; }
.wl-step-head {
  position: relative; display: flex; align-items: flex-start; gap: 18px; width: 100%; padding: 0; overflow: hidden;
  border: 1px solid transparent; background: none; color: inherit; font: inherit; text-align: left; cursor: default;
}
.wl-num {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-cta); color: #fff; font-weight: 700; font-size: 0.98rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.wl-step-copy { display: grid; gap: 6px; padding-top: 6px; min-width: 0; }
.wl-step-title { color: var(--ink); font-size: 1.3rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; }
.wl-step-text { color: var(--ink-dim); line-height: 1.6; }
.wl-step-copy { flex: 1; }
.wl-step-agent { width: 44px; height: 44px; margin: 4px 4px 0 6px; }
.wl-bar { position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; border-radius: 2px; background: var(--violet); transform: scaleX(0); transform-origin: left; opacity: 0; }
.wl-shot { margin: 28px 0 0; }
.wl-shot img {
  width: 100%; border-radius: 16px; background: var(--bg-2);
  box-shadow: 0 60px 140px -50px rgba(var(--shade), calc(0.95 * var(--shade-k))), 0 24px 60px -30px rgba(80,60,180,0.45), 0 0 0 1px rgba(var(--fg),0.09);
}
.wl-how .mc-shot-note { margin-top: 28px; }

/* ---- Wide screens with JS: the list on the left, one picture on the right -- */
@media (min-width: 981px) {
  .wl-js .wl-steps { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); column-gap: 56px; align-items: center; }
  .wl-js .wl-step { display: contents; }
  .wl-js .wl-step-head { grid-column: 1; margin: 0 0 10px; padding: 22px 24px 24px; border-radius: 20px; cursor: pointer; transition: background 0.25s, border-color 0.25s; }
  .wl-js .wl-step:nth-child(1) .wl-step-head { grid-row: 1; }
  .wl-js .wl-step:nth-child(2) .wl-step-head { grid-row: 2; }
  .wl-js .wl-step:nth-child(3) .wl-step-head { grid-row: 3; }
  .wl-js .wl-step:nth-child(4) .wl-step-head { grid-row: 4; }
  .wl-js .wl-step-head:hover { background: rgba(var(--fg),0.03); }
  .wl-js .wl-step-head:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 20px; }
  .wl-js .wl-step:not(.is-on) .wl-num { background: rgba(var(--fg),0.05); color: var(--ink-dim); box-shadow: inset 0 0 0 1px var(--line-2); }
  .wl-js .wl-step:not(.is-on) .wl-step-title { color: var(--ink-soft); }
  .wl-js .wl-step.is-on .wl-step-head { background: rgba(var(--fg),0.05); border-color: var(--line-2); }
  .wl-js .wl-step:not(.is-on) .wl-step-agent { visibility: hidden; }
  .wl-js .wl-shot {
    grid-column: 2; grid-row: 1 / span 4; margin: 0; opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.985);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0.5s;
  }
  .wl-js .wl-step.is-on .wl-shot { opacity: 1; visibility: visible; transform: none; z-index: 1; }
  .wl-steps.is-auto .wl-step.is-on .wl-bar { opacity: 0.9; animation: wl-fill var(--wl-every, 6s) linear forwards; }
  .wl-steps.is-paused .wl-step.is-on .wl-bar { animation-play-state: paused; }
}
@keyframes wl-fill { to { transform: scaleX(1); } }

/* ---- Phones -------------------------------------------------------------- */
@media (max-width: 760px) {
  .wl-page .mc-hero.wl-hero { padding: 44px 0 24px; }
  .wl-page .wl-hero .lead { font-size: 1.05rem; }
  .wl-team { margin-top: 28px; }
  .wl-team-row { gap: 10px; margin-top: 18px; }
  .wl-agent { width: 66px; height: 66px; }
  .wl-agent-lead { width: 92px; height: 92px; }
  .wl-bubble { font-size: 0.94rem; padding: 11px 16px 12px; }
  /* Under the step's number, so the words get the whole width. */
  .wl-step-agent { position: absolute; left: 1px; top: 58px; width: 38px; height: 38px; margin: 0; }
  .wl-page .wl-hero h1 { margin-bottom: 22px; }
  .wl-join { margin-top: 36px; }
  .wl-page .section.wl-how { padding-top: 88px; }
  .wl-step + .wl-step { margin-top: 56px; }
  .wl-step-title { font-size: 1.18rem; }
  .wl-shot { margin-top: 22px; }
  .wl-shot img { border-radius: 12px; }
}
@media (max-width: 560px) {
  .wl-field { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; border-radius: 24px; }
  .wl-field input { height: 50px; padding: 0 16px; text-align: center; }
  .wl-submit { width: 100%; }
  .wl-done { padding: 28px 20px; }
  .wl-page .wl-trust { flex-direction: column; align-items: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .wl-page .reveal { opacity: 1; transform: none; transition: none; }
  .wl-done, .wl-bubble.is-new { animation: none; }
  .wl-bubble::after { transition: none; }
  .wl-js .wl-shot, .wl-num, .wl-js .wl-step-head { transition: none; }
  .wl-js .wl-shot { transform: none; }
  .wl-steps .wl-bar { display: none; }
}
