/* The waitlist page (#934, #1071): the launch's marketing page.
   Full-width colour bands, one per idea; each theme band wears that
   theme's own tokens (its `css_for` block inline in the page) and font.
   The page's own bands keep one look in light and dark: they are poster
   colours, not app surfaces. The one animation is the hero's course
   being built; with reduced motion it is shown finished. */

.wl {
  --wl-red: #c8321e;
  --wl-red-deep: #9e2414;
  --wl-gold: #ffc523;
  --wl-cobalt: #2442d1;
  --wl-plum: #241532;
  --wl-paper: #fbf8f2;
  --wl-ink: #1c1622;
  --wl-cream: #fff6e8;
  --wl-max: 1160px;
  color: var(--wl-ink);
  overflow-x: clip;
}
main.container:has(> .wl) { max-width: none; padding: 0; }
body:has(main > .wl) > .topbar { margin-bottom: 0; }

.wl-band { padding-block: clamp(4rem, 9vw, 7.5rem); }
.wl-in {
  max-width: var(--wl-max); margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}
.wl h1, .wl h2, .wl h3 { margin: 0; text-wrap: balance; }
.wl p { margin: 0; }
.wl h2 { font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: .98; font-weight: 900; letter-spacing: -.035em; max-width: 16ch; }
.wl-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 46ch; margin-top: 1.1rem !important; }

/* ---- hero ---- */
.wl-hero { background: var(--wl-red); color: var(--wl-cream); padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 7rem); }
.wl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.wl-hero h1 { font-size: clamp(3.8rem, 11vw, 8.5rem); line-height: .86; font-weight: 900; letter-spacing: -.04em; }
.wl-lead { font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.45; max-width: 34ch; margin-top: 1.5rem !important; }
.wl-login { margin-top: 1rem !important; font-size: .95rem; }
.wl-login a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.wl-form { margin-top: 2rem; display: grid; gap: .45rem; max-width: 34rem; }
.wl-form-label { font-weight: 700; font-size: .95rem; }
.wl-form-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.wl-form input {
  flex: 1 1 15rem; min-width: 0; font: inherit; font-size: 1.1rem; padding: .9rem 1rem;
  border: 3px solid var(--wl-ink); border-radius: 12px; background: #fff; color: var(--wl-ink);
}
.wl-btn {
  font: inherit; font-size: 1.1rem; font-weight: 800; padding: .9rem 1.4rem; border-radius: 12px; cursor: pointer;
  border: 3px solid var(--wl-ink); background: var(--wl-ink); color: var(--wl-gold);
  box-shadow: 5px 5px 0 var(--wl-gold); transition: transform .12s, box-shadow .12s;
}
.wl-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--wl-gold); }
.wl-btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--wl-gold); }
.wl-form input:focus-visible, .wl-btn:focus-visible { outline: 3px solid var(--wl-gold); outline-offset: 3px; }
.wl-done { margin-top: 2rem !important; max-width: 32rem; padding: 1rem 1.2rem; border-radius: 12px; background: var(--wl-cream); color: var(--wl-ink); font-weight: 700; font-size: 1.1rem; }
.wl-done-bad { background: var(--wl-gold); }

/* The course being built. */
.wl-build {
  margin: 0; background: #fff; color: var(--wl-ink); border-radius: 18px; padding: 1.4rem 1.5rem 1.3rem;
  border: 3px solid var(--wl-ink); box-shadow: 10px 10px 0 var(--wl-red-deep); transform: rotate(1.5deg);
}
.wl-build-ask { font-size: 1.15rem; font-weight: 700; line-height: 1.35; padding: .8rem 1rem; border-radius: 12px; background: var(--wl-paper); border: 2px dashed #d9cdb8; }
.wl-build-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.wl-build-steps li { display: grid; gap: .05rem; padding-left: 1.9rem; position: relative; }
.wl-build-steps li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--wl-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.wl-build-steps b { font-size: 1.15rem; font-weight: 800; }
.wl-build-steps span { font-size: .88rem; color: #6a6070; }
.wl-build-bar { margin-top: 1.1rem; height: 10px; border-radius: 99px; background: #efe7da; overflow: hidden; }
.wl-build-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--wl-red), var(--wl-gold)); border-radius: inherit; }
.wl-build-ready { margin-top: .7rem !important; font-weight: 800; color: #1b7a43; }

@media (prefers-reduced-motion: no-preference) {
  .wl-build-steps li { opacity: 0; animation: wl-pop .45s cubic-bezier(.2, 1.4, .4, 1) forwards; animation-delay: calc(var(--i) * .55s + .3s); }
  .wl-build-bar span { width: 0; animation: wl-fill 3.1s cubic-bezier(.4, 0, .3, 1) .3s forwards; }
  .wl-build-ready { opacity: 0; animation: wl-pop .5s cubic-bezier(.2, 1.4, .4, 1) 3.4s forwards; }
}
@keyframes wl-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes wl-fill { to { width: 100%; } }

/* ---- a chatbot's answer against a course ---- */
.wl-gen { background: var(--wl-gold); color: var(--wl-ink); }
.wl-versus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.wl-who { font-weight: 800; font-size: 1rem; margin-bottom: .6rem !important; }
.wl-chat-bubble {
  background: rgba(255, 255, 255, .55); border-radius: 16px 16px 16px 4px; padding: 1rem 1.15rem; color: #57503f;
  font-size: .95rem; line-height: 1.6; max-height: 15rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.wl-course { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.wl-course .wl-who { grid-column: 1 / -1; margin-bottom: 0 !important; }
.wl-course-card { background: #fff; border: 3px solid var(--wl-ink); border-radius: 16px; padding: 1.1rem; box-shadow: 7px 7px 0 var(--wl-ink); }
.wl-course-unit { font-size: .8rem; color: #6a6070; }
.wl-course-q { font-weight: 800; font-size: 1.15rem; line-height: 1.3; margin: .3rem 0 .7rem !important; }
.wl-opt { display: flex; justify-content: space-between; align-items: center; padding: .55rem .8rem; border: 2px solid #e4ddd2; border-radius: 10px; margin-top: .4rem !important; font-weight: 600; }
.wl-opt-right { border-color: #1b7a43; background: #e2f5e9; color: #145c32; }
.wl-course-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.wl-course-list li { background: var(--wl-ink); color: var(--wl-cream); padding: .65rem .85rem; border-radius: 10px; font-weight: 700; font-size: .95rem; }
.wl-course-list li:last-child { background: var(--wl-red); }

/* ---- modes ---- */
.wl-modes { background: var(--wl-cobalt); color: #fff; }
.wl-mode-list { list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; }
.wl-mode-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 2.5rem; align-items: baseline; padding-block: 1.4rem; border-top: 2px solid rgba(255, 255, 255, .25); }
.wl-mode-list h3 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--mode); }
.wl-mode-list p { font-size: 1.05rem; line-height: 1.55; color: #dfe5ff; max-width: 52ch; }
.m-sprint { --mode: #ffb547; }
.m-study { --mode: #7cf0c5; }
.m-play { --mode: #ff8ad8; }
.m-ai { --mode: #c9b3ff; }
.m-mastery { --mode: var(--wl-gold); }

/* ---- themes ---- */
.wl-themes-intro { background: var(--wl-plum); color: var(--wl-cream); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.wl-theme { background: var(--bg); color: var(--text); font-family: var(--font); padding-top: 0; position: relative; }
.wl-theme-banner { display: block; width: 100%; height: clamp(120px, 20vw, 260px); object-fit: cover; max-width: none; }
.wl-theme-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(2rem, 4vw, 3rem); }
.wl-theme-title { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .95; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.wl-theme[data-wl-theme] .wl-theme-title { text-shadow: 0 2px 0 var(--line); }
.wl-theme-text > p { margin-top: 1rem !important; font-size: 1.05rem; line-height: 1.55; color: var(--muted); max-width: 48ch; }
.wl-avatars { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; }
.wl-avatars li { width: clamp(48px, 7vw, 68px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--bg); margin-right: -10px; }
.wl-avatars img { display: block; width: 100%; height: 100%; }
.wl-theme-quiz { position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 1.2rem; }
.wl-theme-q { font-weight: 700; font-size: 1.15rem; margin-bottom: .5rem !important; }
.wl-theme .wl-opt { border-color: var(--line); }
.wl-theme .wl-opt-right { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.wl-praise {
  position: absolute; top: -1.1rem; right: -.6rem; transform: rotate(4deg);
  background: var(--gold); color: #1a1408; font-weight: 800; font-size: 1.1rem; padding: .45rem .85rem; border-radius: 10px;
  box-shadow: 0 4px 0 var(--gold-dark, rgba(0, 0, 0, .25));
}
.wl-theme-badges { display: flex; gap: .6rem; margin-top: 1rem !important; }
.wl-theme-badges img { width: 52px; height: 52px; }

/* ---- motivators ---- */
.wl-motivators { background: var(--wl-paper); }
.wl-mot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.wl-mot { border-radius: 20px; padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; border: 3px solid var(--wl-ink); }
.wl-mot h3 { font-size: 1.25rem; font-weight: 800; margin-top: auto; padding-top: .6rem; }
.wl-mot p { font-size: .95rem; line-height: 1.5; }
.wl-mot .wl-mot-huge { font-size: clamp(2.6rem, 4.5vw, 3.6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.wl-mot .wl-mot-big { font-weight: 700; font-size: 1rem !important; }
.wl-mot-stats { background: #1f9d6b; color: #fff; }
.wl-mot-xp { background: #6b3fd4; color: #fff; }
.wl-mot-skc { background: var(--wl-gold); color: var(--wl-ink); }
.wl-mot-social { background: #ff6b4a; color: var(--wl-ink); }
.wl-ring { width: 6.5rem; height: 6.5rem; }
.wl-ring-track { stroke: rgba(255, 255, 255, .28); }
.wl-ring-fill { stroke: #fff; }
.wl-xp-bar { height: 14px; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.wl-xp-bar span { display: block; width: 68%; height: 100%; background: var(--wl-gold); border-radius: inherit; }
.wl-shelf { display: flex; flex-wrap: wrap; gap: .35rem; }
.wl-shelf img { width: 44px; height: 44px; }

/* ---- write it yourself ---- */
.wl-write { background: #fff; }
.wl-write-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.wl-code { margin: 0; background: var(--wl-ink); color: #efe9f5; border-radius: 16px; overflow: hidden; box-shadow: 10px 10px 0 var(--wl-cobalt); min-width: 0; }
.wl-code figcaption { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; color: #a99fb6; padding: .7rem 1.1rem; border-bottom: 1px solid #3a2f47; }
.wl-code pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font-size: .86rem; line-height: 1.65; }
.wl-code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: none; border: 0; padding: 0; color: inherit; }
.wl-code i { font-style: normal; color: #ffb547; }
.wl-code b { font-weight: 400; color: #7cf0c5; }

/* ---- final call ---- */
.wl-final { background: var(--wl-red); color: var(--wl-cream); }
.wl-final h2 { max-width: 14ch; font-size: clamp(2.6rem, 7.5vw, 5.8rem); }

/* ---- narrower screens ---- */
@media (max-width: 960px) {
  .wl-mot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-versus { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wl-hero-grid, .wl-theme-grid, .wl-write-grid { grid-template-columns: minmax(0, 1fr); }
  .wl-build { transform: none; box-shadow: 6px 6px 0 var(--wl-red-deep); }
  .wl-mode-list li { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .wl-course { grid-template-columns: minmax(0, 1fr); }
  .wl-chat-bubble { max-height: 9rem; }
}
@media (max-width: 480px) {
  .wl-mot-grid { grid-template-columns: minmax(0, 1fr); }
  .wl-btn { flex: 1 1 100%; }
  .wl-praise { right: .4rem; }
}
