/* eraform.app waitlist pages (home, /w/<code>, /confirm). Ported from the canvas boards
   MktLandingDesktop (1440), MktLandingPhone (390) and MktWaitlistConfirm (390): same px sizes, radii,
   gaps and colours. Always dark, like the boards. Loaded after site.css. */

html.wl {
  --bg: #020208; --surface: #050510; --line: rgba(255, 255, 255, 0.08); --text: #F2F2FA; --muted: #9A9AB8;
  --sub: #B4B4CC; --v: #7C3AFF; --vl: #C9B8FF; --mint: #2EE6A8; --field: #0A0A18; --field-line: rgba(255, 255, 255, 0.14);
  --gym: #FF5C39; --run: #2ED3FF; --food: #C8FF3D; --sleep: #3F6FFF;
  --accent: #7C3AFF; --accent-strong: #7C3AFF; --accent-text: #C9B8FF; --glow: rgba(124, 58, 255, 0.9);
  color-scheme: dark;
}
.wl-page { background: radial-gradient(70% 30% at 70% 0%, rgba(124, 58, 255, 0.28) 0%, rgba(124, 58, 255, 0) 70%) no-repeat, #020208; background-size: 100% 1200px; color: var(--text); font-family: 'Instrument Sans', system-ui, sans-serif; line-height: 1.4; }
.wl-page main { padding-bottom: 80px; }
.wl-page [hidden] { display: none !important; }

/* Header (board: padding 28px 120px, brand Michroma 18 / .06em, eclipse 28, nav 15 #B4B4CC gap 28) */
.wl-page .top { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
.wl-page .wrap { max-width: 1440px; padding-left: max(20px, min(120px, 8.333vw)); padding-right: max(20px, min(120px, 8.333vw)); }
.wl-page .top .wrap { height: auto; padding-top: 28px; padding-bottom: 28px; }
.wl-page .brand { gap: 12px; font-size: 18px; letter-spacing: 0.06em; }
.wl-page .eclipse { width: 28px; height: 28px; background: #020207; box-shadow: inset 3px -3px 7px rgba(201, 184, 255, 0.6), 0 0 0 2px #C9B8FF, 0 0 9px 2px rgba(124, 58, 255, 0.9); }
.wl-page .nav { gap: 28px; }
.wl-page .nav a { font-size: 15px; font-weight: 400; color: var(--sub); }
.wl-page .nav a:hover { color: var(--text); }
.wl-page .foot { border-top: 0; padding-top: 0; }

/* Shared pieces */
.wl-dot { display: inline-block; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--vl)); }
.wl-dot.mint { width: 8px; height: 8px; background: var(--mint); }
.wl-btn { display: inline-flex; align-items: center; justify-content: center; height: 60px; padding: 0 28px; border: 0; border-radius: 18px; background: var(--v); color: #FFFFFF; font: 700 18px 'Instrument Sans', sans-serif; box-shadow: 0 14px 40px -14px #7C3AFF; white-space: nowrap; cursor: pointer; text-decoration: none; }
.wl-btn:disabled { opacity: 0.6; cursor: default; }
.wl-btn:focus-visible, .wl-share button:focus-visible, .wl-link button:focus-visible { outline: 2px solid var(--vl); outline-offset: 3px; }
.wl-eyebrow { font-family: 'Michroma', sans-serif; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vl); }
.wl-page h1, .wl-page h2 { text-transform: none; text-wrap: wrap; }
.wl-h1 { margin: 0; font-family: 'Michroma', sans-serif; font-weight: 400; font-size: 56px; line-height: 1.15; letter-spacing: 0.01em; }
.wl-h2 { margin: 0; font-family: 'Michroma', sans-serif; font-weight: 400; font-size: 38px; line-height: 1.25; letter-spacing: 0; max-width: 980px; }
.m { display: none; }

/* Landing ------------------------------------------------------------------------------------ */
.wl-landing { max-width: 1440px; margin: 0 auto; }
.wl-hero { display: flex; align-items: center; justify-content: space-between; gap: 60px; padding: 70px max(20px, min(120px, 8.333vw)) 0; }
.wl-hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 700px; min-width: 0; }
.wl-pill { align-self: flex-start; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid rgba(201, 184, 255, 0.35); font-size: 14px; color: var(--vl); }
.wl-lede { margin: 0; font-size: 21px; line-height: 1.55; color: var(--sub); }
.wl-form { display: flex; flex-direction: column; gap: 10px; width: 560px; max-width: 100%; }
.wl-form label { font-size: 14px; color: var(--muted); }
.wl-row { display: flex; gap: 10px; }
.wl-form input[type="email"] { flex: 1 1 auto; min-width: 0; height: 60px; box-sizing: border-box; border-radius: 18px; border: 1px solid var(--field-line); background: var(--field); color: var(--text); padding: 0 20px; font: 18px 'Instrument Sans', sans-serif; }
.wl-form input[type="email"]::placeholder { color: #5E5E7A; }
.wl-form input[type="email"]:focus { outline: none; border-color: var(--vl); box-shadow: 0 0 0 3px rgba(124, 58, 255, 0.35); }
.wl-form input[aria-invalid="true"] { border-color: #FF6B6B; }
.wl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wl-error { margin: 0; font-size: 15px; line-height: 1.45; color: #FF8A8A; }
.wl-count { margin: 0; font-size: 15px; color: var(--muted); }

.wl-phone { flex: 0 0 auto; width: 310px; height: 640px; box-sizing: border-box; border-radius: 46px; border: 1px solid rgba(255, 255, 255, 0.12); background: radial-gradient(120% 35% at 50% -5%, rgba(124, 58, 255, 0.35) 0%, rgba(124, 58, 255, 0) 70%), #020208; padding: 54px 18px 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 120px -40px rgba(124, 58, 255, 0.8); }
.wl-phone-h { font-family: 'Michroma', sans-serif; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.wl-week { display: flex; gap: 6px; }
.wl-week span { flex: 1 1 0; height: 34px; border-radius: 10px; }
.wl-pcard { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.wl-pcard.row { flex-direction: row; align-items: center; justify-content: space-between; }
.wl-pcard.row > div { display: flex; flex-direction: column; gap: 4px; }
.wl-pcard .e { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.wl-pcard .t { font-size: 16px; font-weight: 700; }
.wl-pcard .s { font-size: 12px; color: var(--muted); }
.wl-pcard .n { font-family: 'Michroma', sans-serif; font-size: 20px; }
.wl-pcard .kv { display: flex; justify-content: space-between; font-size: 13px; }
.wl-pcard:last-child { gap: 8px; }

.wl-sec { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 96px max(20px, min(120px, 8.333vw)) 0; }
.wl-sub { margin: 0; font-size: 19px; line-height: 1.55; color: var(--sub); max-width: 760px; }
.wl-apps, .wl-feats { display: flex; gap: 18px; width: 100%; }
.wl-apps > div { flex: 1 1 0; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.wl-apps b { font-size: 18px; font-weight: 700; }
.wl-apps span { font-size: 15px; color: var(--muted); }
.wl-feats > div { flex: 1 1 0; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.wl-feats .wl-dot { width: 12px; height: 12px; }
.wl-feats .e { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c); }
.wl-feats b { font-size: 22px; font-weight: 700; line-height: 1.3; }
.wl-feats .t { font-size: 16px; line-height: 1.55; color: var(--sub); }
.wl-steps { display: flex; gap: 40px; width: 100%; }
.wl-steps > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 10px; }
.wl-steps .n { font-family: 'Michroma', sans-serif; font-size: 28px; color: var(--vl); }
.wl-steps b { font-size: 19px; font-weight: 700; }
.wl-steps span:not(.n) { font-size: 16px; line-height: 1.5; color: var(--sub); }
.wl-cta { margin: 96px max(20px, min(120px, 8.333vw)) 0; border-radius: 32px; background: radial-gradient(80% 120% at 50% 0%, rgba(124, 58, 255, 0.35) 0%, rgba(124, 58, 255, 0) 70%), var(--surface); border: 1px solid rgba(201, 184, 255, 0.25); padding: 64px; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.wl-cta.d { display: flex; }
.wl-cta p { margin: 0; font-size: 19px; color: var(--sub); }
.wl-faq { width: 100%; display: flex; flex-direction: column; }
.wl-faq > div { border-top: 1px solid var(--line); padding: 22px 0; display: flex; flex-direction: column; gap: 8px; }
.wl-faq b { font-size: 19px; font-weight: 700; }
.wl-faq span { font-size: 16px; line-height: 1.55; color: var(--sub); max-width: 900px; }

/* Desktop that is narrower than the board: stack the 4-up rows two by two. */
@media (max-width: 1100px) {
  .wl-hero { gap: 40px; }
  .wl-apps, .wl-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
}
@media (max-width: 860px) {
  .wl-hero { flex-direction: column; align-items: stretch; }
  .wl-phone { align-self: center; }
}

/* Phone (board MktLandingPhone, 390 wide: padding 24px 20px, gap 22) */
@media (max-width: 640px) {
  .d { display: none !important; }
  .m { display: revert; }
  .wl-page .top .wrap { padding-top: 24px; padding-bottom: 0; }
  .wl-page .brand { gap: 10px; font-size: 15px; }
  .wl-page .eclipse { width: 22px; height: 22px; box-shadow: inset 2px -2px 5px rgba(201, 184, 255, 0.6), 0 0 0 1.57px #C9B8FF, 0 0 8px 2px rgba(124, 58, 255, 0.9); }
  .wl-page .nav { gap: 16px; }
  .wl-page .nav a { font-size: 14px; }
  .wl-page .nav a.hide-sm { display: none; }
  .wl-page { background: radial-gradient(130% 25% at 50% 0%, rgba(124, 58, 255, 0.32) 0%, rgba(124, 58, 255, 0) 70%) no-repeat, #020208; background-size: 100% 1400px; }
  .wl-page main { padding-bottom: 48px; }
  .wl-hero { padding: 22px 20px 0; gap: 22px; }
  .wl-hero-copy { gap: 22px; }
  .wl-pill { height: 32px; padding: 0 14px; border-radius: 16px; gap: 8px; font-size: 13px; }
  .wl-dot.mint { width: 7px; height: 7px; }
  .wl-h1 { font-size: 34px; line-height: 1.2; letter-spacing: 0; }
  .wl-lede { font-size: 17px; }
  .wl-form { width: 100%; }
  .wl-form label { font-size: 13px; }
  .wl-row { flex-direction: column; }
  .wl-form input[type="email"] { height: 56px; border-radius: 16px; padding: 0 18px; font-size: 17px; }
  .wl-btn { width: 100%; }
  .wl-count { font-size: 13px; margin-top: 0; }
  .wl-phone { height: 600px; margin-top: 8px; max-width: 100%; }
  .wl-sec { padding: 22px 20px 0; gap: 22px; }
  .wl-h2 { font-size: 24px; line-height: 1.3; margin-top: 12px; }
  .wl-eyebrow { display: none; }
  .wl-sub { font-size: 16px; }
  .wl-feats { display: flex; flex-direction: column; gap: 22px; }
  .wl-feats > div { border-radius: 22px; padding: 20px; gap: 8px; }
  .wl-feats .wl-dot { display: none; }
  .wl-feats .e { font-size: 11px; }
  .wl-feats b { font-size: 18px; }
  .wl-feats .t { font-size: 15px; line-height: 1.5; }
  .wl-phone-how { margin: 0; font-size: 16px; line-height: 1.55; color: var(--sub); }
  .wl-jump.m { display: flex; width: 100%; }
  .wl-faq > div { padding: 18px 0; }
  .wl-faq b { font-size: 17px; }
  .wl-faq span { font-size: 15px; }
}
@media (max-width: 380px) {
  .wl-phone { width: 100%; }
  .wl-h1 { font-size: 30px; }
}

/* Confirm steps after sign-up */
.wl-confirm { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid rgba(201, 184, 255, 0.35); box-shadow: 0 20px 60px -30px rgba(124, 58, 255, 0.8); }
.wl-csteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.wl-csteps li { display: flex; gap: 14px; align-items: flex-start; }
.wl-csteps .n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--v); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 16px rgba(124, 58, 255, 0.7); }
.wl-csteps b { display: block; font-size: 17px; margin: 3px 0 4px; }
.wl-csteps p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--sub); overflow-wrap: anywhere; }
.wl-csteps p b { display: inline; font-size: inherit; margin: 0; color: var(--text); }
.wl-confirm .wl-btn { width: 100%; }
.wl-confirm .wl-honest { text-align: center; }
.wl-result .wl-msg-h + .wl-confirm { margin-top: -4px; }

/* After sign-up, /w/<code>?me=…, /confirm (board MktWaitlistConfirm, 390 wide) -------------------------- */
.wl-result { box-sizing: border-box; width: 100%; max-width: 430px; margin: 0 auto; padding: 40px 20px; display: flex; flex-direction: column; gap: 22px; }
.wl-result .ecl { align-self: center; width: 72px; height: 72px; border-radius: 50%; background: #020207; box-shadow: inset 8px -8px 18px rgba(201, 184, 255, 0.6), 0 0 0 5.14px #C9B8FF, 0 0 24px 7px rgba(124, 58, 255, 0.9); }
.wl-result .lead { text-align: center; font-size: 16px; line-height: 1.5; color: var(--sub); margin: 0; }
.wl-result .rank { text-align: center; font-family: 'Michroma', sans-serif; font-size: 52px; line-height: 1.1; margin: 0; }
.wl-result .of { text-align: center; font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; }
.wl-result .note { text-align: center; font-size: 15px; line-height: 1.5; color: var(--vl); margin: 0; }
.wl-result .wl-btn { align-self: center; }
.wl-card { border-radius: 22px; background: var(--surface); border: 1px solid rgba(201, 184, 255, 0.3); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.wl-card > b { font-size: 17px; font-weight: 700; }
.wl-card > p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.wl-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; box-sizing: border-box; border-radius: 14px; background: var(--field); border: 1px solid rgba(255, 255, 255, 0.12); padding: 0 16px; }
.wl-link span { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.wl-link button { flex: 0 0 auto; border: 0; background: none; padding: 8px 0 8px 8px; font: 700 14px 'Instrument Sans', sans-serif; color: var(--vl); cursor: pointer; }
.wl-share { display: flex; gap: 10px; }
.wl-share button, .wl-share a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; height: 52px; box-sizing: border-box; border-radius: 16px; border: 1px solid var(--field-line); background: var(--field); color: var(--text); font: 600 15px 'Instrument Sans', sans-serif; text-decoration: none; cursor: pointer; }
.wl-ladder { display: flex; flex-direction: column; }
.wl-ladder > div { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.wl-ladder .c { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--c); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #020208; }
.wl-ladder .x { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; font-size: 16px; min-width: 0; }
.wl-ladder .x small { font-size: 13px; color: var(--muted); }
.wl-ladder .r { flex: 0 1 auto; font-size: 14px; color: var(--muted); text-align: right; }
.wl-ladder .done .r { color: var(--mint); }
.wl-ladder .done .x::after { content: none; }
.wl-honest { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.wl-msg { font-size: 16px; line-height: 1.55; color: var(--sub); text-align: center; margin: 0; }
.wl-leave { align-self: center; border: 0; background: none; color: var(--muted); font: 14px 'Instrument Sans', sans-serif; text-decoration: underline; cursor: pointer; padding: 6px; }
.wl-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 14px; background: #15152C; border: 1px solid rgba(201, 184, 255, 0.3); color: var(--text); font-size: 15px; box-shadow: 0 14px 40px -14px #000; }
.wl-spin { align-self: center; width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(201, 184, 255, 0.25); border-top-color: var(--vl); animation: wlspin 0.9s linear infinite; }
@keyframes wlspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wl-spin { animation: none; } }

/* Beta rules page */
.lp-rules { box-sizing: border-box; max-width: 820px; margin: 0 auto; padding: 40px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.lp-rules h2 { margin: 26px 0 0; font-size: 21px; font-weight: 700; }
.lp-rules ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--sub); font-size: 17px; line-height: 1.55; }
.lp-rules b { color: var(--text); }
.lp-rules a:not(.wl-btn) { color: var(--vl); }
.lp-rules-foot { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.lp-rules .wl-btn { align-self: flex-start; margin-top: 12px; }
.lp-honest a { color: var(--vl); }

/* Beta install pages (scripts/site/start-*.html) */
.lp-start { max-width: 640px; }
.lp-start .lp-step { margin: 0; color: var(--sub); font-size: 17px; line-height: 1.55; }
.lp-start .wl-btn { margin-top: 4px; }
.wl-btn.wl-btn-ghost { background: transparent; border: 1px solid var(--line, rgba(255,255,255,0.18)); box-shadow: none; }
