:root {
  --wu-blue: #0555ae;
  --wu-blue-deep: #043f82;
  --wu-green: #1a7f4b;
  --wu-bg: #f4f7fb;
  --wu-card: #ffffff;
  --wu-text: #0f172a;
  --wu-muted: #64748b;
  --wu-border: #e2e8f0;
  --wu-danger: #b91c1c;
  --wu-radius: 14px;
  --wu-safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Lato, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--wu-bg);
  color: var(--wu-text);
}
body {
  -webkit-font-smoothing: antialiased;
}

#warmup-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--wu-bg);
  position: relative;
  overflow-x: hidden;
}

.wu-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 56px;
  padding: 7px 1rem;
  box-sizing: border-box;
  background: linear-gradient(90deg, var(--wu-blue), #1a7ac9);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.wu-brand-lockup {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  height: 100%;
  min-width: 0;
}
.wu-brand {
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.wu-broker-rule {
  display: none;
  width: 1px;
  height: 1.7rem;
  background: rgba(255, 255, 255, 0.9);
  flex: 0 0 1px;
}
.wu-brand-lockup:has(.wu-broker-mark:not([hidden])) .wu-broker-rule {
  display: block;
}
.wu-brand-sub {
  font-weight: 700;
  opacity: 0.85;
  margin-left: 0.25rem;
}
.wu-broker-mark {
  height: 86%;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.wu-broker-mark[hidden] { display: none !important; }

.wu-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 1rem calc(1.25rem + var(--wu-safe-bottom));
}
.wu-screen[hidden] { display: none !important; }

/* Landing → first question: slideshow swipe (right → left) */
.wu-screen.wu-slide-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  margin: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--wu-bg);
  transition: transform 0.96s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}
.wu-screen.wu-slide-from-right {
  transform: translateX(100%);
}
.wu-screen.wu-slide-to-left {
  transform: translateX(-100%);
}
.wu-screen.wu-slide-center {
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .wu-screen.wu-slide-layer {
    transition: none;
  }
}

.wu-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wu-bg);
  color: var(--wu-muted);
  font-weight: 700;
  z-index: 30;
}
.wu-loading[hidden] { display: none !important; }

/* Landing — full-bleed group + Brittany bottom half */
#wu-landing.wu-landing-stage {
  position: relative;
  padding: 0;
  overflow: hidden;
  flex: 1 0 auto;
  min-height: calc(100dvh - 52px);
  padding-bottom: 0;
  justify-content: flex-start;
  /* Grass at the bottom of warmup_avatar_group_v67.jpg. Shows behind Brittany. */
  background: #dbe3ce;
}
.wu-landing-bg {
  display: none;
}
.wu-group-frame {
  position: relative;
  z-index: 1;
}
/* A light veil so the group sits back and Brittany stays the brighter figure. */
.wu-group-fade {
  position: absolute;
  inset: 0;
  /* Clear at the sky and the grass so the veil melts into those backgrounds,
     and only a light wash over the people. */
  background: linear-gradient(
    to bottom,
    rgba(214, 237, 253, 0) 0%,
    rgba(255, 255, 255, 0.23) 26%,
    rgba(255, 255, 255, 0.23) 68%,
    rgba(219, 227, 206, 0) 100%
  );
  pointer-events: none;
}
.wu-group-img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 36vh;
  min-height: 17.4rem;
  margin: 0;
  /* 20% taller than the 30vh frame, growing down from the same top.
     Side crop stays centered so a narrower window trims left and right equally. */
  object-fit: cover;
  object-position: center top;
}
.wu-landing-scrim {
  display: none;
}
.wu-landing-copy {
  position: relative;
  z-index: 5;
  padding: 1.1rem 1.15rem 1.35rem;
  margin-bottom: -1.1rem;
  /* Sky at the top of warmup_avatar_group_v67.jpg, so the hero meets the photo sky. */
  background: #d6edfd;
  color: #0f172a;
  text-shadow: none;
  pointer-events: none; /* don't block Brittany tap */
}
.wu-landing-copy h1 {
  margin: 0 0 0.45rem;
  font-size: 1.7rem;
  line-height: 1.15;
  font-weight: 900;
}
.wu-landing-lead {
  display: grid;
  grid-template-columns: minmax(0, 16.4rem) auto;
  column-gap: 1rem;
  justify-content: space-between;
  align-items: center;
  /* Lets the button sit a little closer to the edge so the text column
     can end after "learn" and still leave a gap before the button. */
  margin-right: -0.7rem;
}
.wu-landing-lead > p:not(.wu-terms-note) {
  grid-column: 1;
  grid-row: 1;
  width: 16.4rem;
  max-width: 100%;
  margin: 0;
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.35;
  font-size: 0.98rem;
}
.wu-landing-copy .wu-terms-note {
  grid-column: 1;
  grid-row: 2;
  margin: 0.7rem 0 0;
  max-width: none;
  font-size: 9px;
  line-height: 1.35;
  color: rgba(15, 23, 42, 0.72);
  pointer-events: auto; /* the links must take taps */
}
.wu-terms-note a {
  color: var(--wu-blue);
  font-weight: 400;
  font-size: inherit;
  text-decoration: underline;
}
.wu-lets-go {
  position: static;
  grid-column: 2;
  grid-row: 1;
  z-index: 6;
  border: 0;
  pointer-events: auto;
  border-radius: 999px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  background: var(--wu-blue);
  box-shadow: 0 8px 18px rgba(5, 85, 174, 0.35);
  cursor: pointer;
}
.wu-lets-go:active {
  background: var(--wu-blue-deep);
}
.wu-lets-go:disabled {
  opacity: 0.7;
  cursor: wait;
}

.wu-brittany-stage {
  /* Twice the previous on-screen size. The clip ends at the top of her legs,
     and that edge sits on the bottom of the window. */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 106vh;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  isolation: isolate;
}
.wu-brittany-video,
.wu-brittany-poster {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  background: transparent;
  transform: none;
}
.wu-brittany-poster {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  /* Same downward shift as the video below, so the still of her first
     frame lines up with the clip when it starts (DAT-341). v7 shows her
     whole body; her upper thighs are at 61% of the frame, and this shift
     parks that line on the bottom edge. */
  transform: translate(-50%, 39.1%);
}
.wu-brittany-video {
  position: relative;
  z-index: 1;
  /* v7 shows her whole body. Shift her so the window ends at her upper
     thighs, the same crop as the previous clip. */
  transform: translateY(39.1%);
}
.wu-brittany-video[hidden],
.wu-brittany-poster[hidden] {
  display: none !important;
}

/* Randy, Nov 10 2026 evening: when Brittany finishes, the whole page slides
   left and "Here comes your first question" slides in from the right over the
   full window (warmup.js slideToHandoff). The test page opens on the same
   panel, #hq-arrival in index.html, so both panels must look the same: same
   background, spinner, text, size and system font. */
#wu-handoff.wu-handoff-full {
  position: fixed;
  inset: 0;
  z-index: 50;
  margin: 0;
  padding: 0;
  height: auto;
  background: var(--wu-bg);
  transform: translateX(100%);
  transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
}
#wu-handoff.wu-handoff-full.wu-slide-in { transform: translateX(0); }
.wu-topbar.wu-slid-away,
#wu-landing.wu-slid-away,
.wu-profile-pane.wu-slid-away {
  transform: translateX(-100vw);
  transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
}
@media (prefers-reduced-motion: reduce) {
  #wu-handoff.wu-handoff-full,
  .wu-topbar.wu-slid-away,
  #wu-landing.wu-slid-away,
  .wu-profile-pane.wu-slid-away { transition: none; }
}
.wu-guide-controls {
  position: absolute;
  right: 0.7rem;
  top: 66%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  pointer-events: auto;
}
.wu-guide-controls[hidden] { display: none !important; }
.wu-guide-icon {
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.32);
  color: #fff;
  cursor: pointer;
}
.wu-guide-icon svg {
  width: 0.72rem;
  height: 0.72rem;
  fill: currentColor;
}
.wu-guide-icon .wu-icon-pause { display: block; }
.wu-guide-icon .wu-icon-play { display: none; }
.wu-guide-icon.is-paused .wu-icon-pause { display: none; }
.wu-guide-icon.is-paused .wu-icon-play { display: block; }
.wu-guide-skip {
  border: 0;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  background: rgba(15, 23, 42, 0.32);
  color: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.wu-guide-skip[hidden] { display: none !important; }
.wu-landing-actions {
  /* Same vertical band and the same 1.15rem inset, on the right so the
     label sits clear of Brittany's arm. */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  margin: 0;
  height: calc(7.4vh + var(--wu-safe-bottom));
  min-height: calc(2.5rem + var(--wu-safe-bottom));
  padding: 0 1.15rem var(--wu-safe-bottom);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  pointer-events: none;
}
.wu-landing-actions .wu-fineprint {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
  text-shadow: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.wu-fineprint {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
  text-shadow: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
/* DAT-318: sign in link for account holders, right side of the header. */
.wu-signin-link {
  margin-left: auto;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.wu-btn-primary,
.wu-btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}
.wu-btn-primary {
  background: var(--wu-blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(5, 85, 174, 0.25);
}
.wu-btn-primary:active { background: var(--wu-blue-deep); }
.wu-btn-secondary {
  background: #fff;
  color: var(--wu-blue);
  border: 2px solid var(--wu-border);
  margin-top: 0.65rem;
}
.wu-fineprint {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--wu-muted);
  line-height: 1.35;
}

/* Handoff: the panel that slides in after Brittany while the guest session
   starts and the real test loads. */
.wu-handoff {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
}
.wu-handoff-title {
  margin: 0;
  /* System font and px sizes, so the test page's matching panel looks the
     same without waiting for a web font. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--wu-text);
}
.wu-handoff-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid var(--wu-border);
  border-top-color: var(--wu-blue);
  /* Set from the clock on both pages, so the spinner keeps turning without a
     jump when the test page takes over (warmup.js, index.html). */
  animation: wu-spin 0.9s linear infinite;
  animation-delay: var(--hq-spin-delay, 0s);
}
@keyframes wu-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .wu-handoff-spinner { animation: none; }
}

/* Narrow windows stay the one-column phone page. Two columns only once the
   left pane can keep a full-size Brittany. Below that, the right pane would
   have to steal her width, so we drop to one column instead. */
.wu-profile-pane { display: none; }

@media (min-width: 1000px) {
  :root {
    /* The left pane holds this width. Wider windows give the extra space to
       it. Narrower windows take the width from the right pane, down to
       --wu-side-min, and then this layout ends. */
    --wu-main-min: 720px;
    --wu-side-min: 280px;
    --wu-side-max: 568px;
    --wu-side: clamp(var(--wu-side-min), calc(100vw - var(--wu-main-min)), var(--wu-side-max));
  }
  html, body {
    height: 100%;
    background: #fff;
  }
  #warmup-app {
    max-width: none;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(var(--wu-main-min), 1fr) var(--wu-side);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    border: 0;
    box-shadow: none;
  }
  .wu-topbar { grid-column: 1 / -1; grid-row: 1; }
  #wu-landing.wu-landing-stage,
  #wu-handoff {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    height: 100%;
  }
  .wu-screen.wu-slide-layer {
    top: auto;
    right: var(--wu-side);
  }
  /* The copy grows with the left column, then stops. Past about a 15-inch
     window the headline, subtitle, and Let's go stay put so a widescreen
     monitor does not blow them up. Let's Go shares the hero's row and stays
     vertically centered on it. The terms line lives in the profile pane. */
  .wu-landing-copy {
    container-type: inline-size;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(1rem, 3cqi, 2.5rem);
    row-gap: 0.55rem;
    align-items: center;
  }
  .wu-landing-copy h1 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: clamp(1.7rem, 5.2cqi, 3rem);
  }
  .wu-landing-lead {
    display: contents;
  }
  .wu-landing-lead > p:not(.wu-terms-note) {
    grid-column: 1 / -1;
    grid-row: 2;
    width: auto;
    max-width: none;
    font-size: clamp(0.98rem, 2.6cqi, 1.5rem);
  }
  .wu-landing-copy .wu-terms-note {
    display: none;
  }
  /* The photo sky lightens under the white veil. Fade the fill so its
     bottom meets that sky, and keep the top the same blue. */
  .wu-landing-copy {
    background: linear-gradient(to bottom, #d6edfd 0%, #e1f1fe 100%);
  }
  .wu-lets-go {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: clamp(0.95rem, 2.2cqi, 1.25rem);
    padding: clamp(0.65rem, 1.3cqi, 0.8rem) clamp(0.9rem, 2.4cqi, 1.4rem);
  }
  /* Scale with the column so the whole group stays in frame. The top is
     pinned so a wider window does not also push the picture down. */
  .wu-group-frame {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: auto;
  }
  .wu-group-img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: 0;
    object-fit: contain;
    object-position: center top;
  }
  /* "Free to try" and the pause control both sit on the right. The wider
     right lane clears the label; the left lane is only the old pause gap.
     When the column is narrower than her height-based size, she shrinks
     to fit between those lanes. */
  .wu-brittany-stage {
    left: 3.75rem;
    right: 7.15rem;
    top: auto;
    bottom: 0;
    height: 93.6%;
    max-height: 93.6%;
  }
  .wu-brittany-video,
  .wu-brittany-poster {
    width: auto;
    height: auto;
    max-width: 100%;
    /* The still is 720×1280 and will not draw larger than that. The clip is
       1080×1920, so on a tall wide window max-height: 100% alone let her grow
       past the still and jump when the tap started the video. */
    max-height: min(100%, 1280px);
    min-width: 0;
    min-height: 0;
  }
  .wu-brittany-poster {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    /* Auto side margins center the still between left and right, where the
       stage centers the video (DAT-341: it sat at the left edge). */
    margin: 0 auto;
    transform: translateY(39.1%);
    object-fit: contain;
    object-position: center bottom;
  }
  .wu-profile-pane {
    display: block;
    grid-column: 2;
    grid-row: 2;
    z-index: 12;
    margin: 0;
    padding: 2.25rem 1.75rem;
    background: #fff;
    border-left: 1px solid var(--wu-border);
    overflow: auto;
  }
  .wu-profile-kicker {
    margin: 0 0 0.65rem;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 700;
  }
  .wu-profile-pane h2 {
    margin: 0 0 0.85rem;
    font-size: 1.55rem;
    line-height: 1.2;
    font-weight: 900;
  }
  .wu-profile-body {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.45;
  }
  .wu-profile-pane .wu-terms-note {
    margin: 1.35rem 0 0;
    max-width: none;
    font-size: 11px;
    line-height: 1.45;
    color: #64748b;
  }
}

/* Nov 10 2026, landing speed: fade between the landing and the test instead
   of cutting to a new page. Browsers without cross-page transitions ignore
   this and simply open the next page. */
/* No browser fade from the landing to the test (Randy, Nov 10 2026 evening):
   the slide ends on a panel the test page opens with, so a fade between the
   two pages only added a flash. */
