/* ==========================================================================
   Home: Meet Your Portal (partials/home-portal.html, js/home-portal.js)
   Four tools, a render of each, and the work each one takes off an agent's desk.
   Uses site.css tokens and its small mock-up parts (.pill, .m-tick, .m-chip, .m-av, .app-dots).
   Phones, tablets and no JS: text, then its render, four times over.
   From 1024 px with JS (.yp.is-tabs): the list on the left, one render at a time on the right.
   ========================================================================== */

@property --yp-p { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --yp-cut { syntax: '<percentage>'; inherits: true; initial-value: 50%; }

/* ---------- layout: stacked (the default) ---------- */
.yp {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.yp-list, .yp-stage { display: contents; }
.yp-copy:nth-child(1) { order: 1; }  .yp-render:nth-child(1) { order: 2; }
.yp-copy:nth-child(2) { order: 3; }  .yp-render:nth-child(2) { order: 4; }
.yp-copy:nth-child(3) { order: 5; }  .yp-render:nth-child(3) { order: 6; }
.yp-copy:nth-child(4) { order: 7; }  .yp-render:nth-child(4) { order: 8; }
.yp-copy:not(:first-child) { margin-top: clamp(34px, 6vw, 56px); }
.yp-render { width: min(100%, 680px); margin-inline: auto; }

/* ---------- the copy ---------- */
.yp-copy { position: relative; max-width: 680px; width: 100%; margin-inline: auto; }
.yp-head { font: inherit; letter-spacing: normal; }
.yp-tab {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}
.yp-icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(240, 180, 106, .32);
  background: rgba(240, 180, 106, .12);
  color: var(--amber-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: background-color .4s, border-color .4s, color .4s, box-shadow .4s;
}
.yp-icon .icon { width: 20px; height: 20px; }
.yp-name {
  display: block;
  padding-top: 1px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.2rem + .7vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.yp-tag {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: .92rem;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--text-2);
}
.yp-more-in { padding: 16px 0 0 60px; }
.yp-more-in > p:first-child { color: var(--text-2); line-height: 1.6; text-wrap: pretty; }
.yp-saves {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(240, 180, 106, .24);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(240, 180, 106, .11), rgba(255, 255, 255, .025) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  font-size: .92rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.yp-saves-k {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber-2);
}
.yp-saves-k .icon { width: 15px; height: 15px; }
.yp-progress { display: none; }

@media (max-width: 479px) {
  .yp-tab { gap: 14px; }
  .yp-icon { width: 40px; height: 40px; border-radius: 12px; }
  .yp-more-in { padding-left: 0; }
}

/* ---------- the renders ---------- */
.yp-render { position: relative; }
.yp-window {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  background:
    radial-gradient(520px circle at var(--mx, 70%) var(--my, -20%), rgba(255, 255, 255, .07), transparent 50%),
    linear-gradient(180deg, rgba(30, 38, 62, .92), rgba(12, 16, 30, .94));
  box-shadow: var(--lg-shadow);
  overflow: hidden;
  color: var(--text);
  font-size: .8rem;
  line-height: 1.4;
}
/* the liquid-glass light rim (same recipe as site.css's large panels) */
.yp-window::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background: var(--lg-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.yp-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--glass-line);
}
.yp-bar .app-url { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yp-crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .74rem; font-weight: 600; color: var(--text); }
.yp-crumb span { margin: 0 4px; color: var(--text-3); font-weight: 400; }
.yp-body { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.yp-body--flush { padding: 0; gap: 0; }

/* floating glass chips beside each render */
.yp-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  padding: 11px 16px 11px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(28, 35, 58, .78), rgba(10, 14, 26, .84));
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 22px 44px -20px rgba(0, 0, 0, .85);
  font-size: .76rem;
  line-height: 1.35;
}
.yp-chip b { display: block; font-size: .76rem; font-weight: 600; }
.yp-chip span span { display: block; color: var(--text-2); }
.yp-chip--a { right: -14px; bottom: -22px; }
.yp-chip--b { left: -18px; bottom: 112px; }
.yp-chip--c { left: -16px; top: 46%; }
.yp-chip--d { right: -14px; top: 58px; }
@media (max-width: 767px) {
  /* phones: the chip tucks under the window instead of floating over it */
  .yp-chip { position: relative; inset: auto; margin: -16px 12px 0 auto; width: fit-content; max-width: calc(100% - 24px); }
}

/* render 1: listing + launch checklist */
.yp-listing { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
.yp-listing img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--night-3); }
.yp-addr { margin-top: 8px; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.yp-sub { margin-top: 2px; font-size: .74rem; color: var(--text-2); }
.yp-rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.yp-ring {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 12px 6px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  text-align: center;
}
.yp-ring-dial {
  --yp-p: var(--yp-to);
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #121a2d 76%, transparent 78%),
    conic-gradient(var(--amber) calc(var(--yp-p) * 1%), rgba(255, 255, 255, .1) 0);
}
.yp-ring-dial b { font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.yp-ring small { font-size: .64rem; line-height: 1.25; color: var(--text-2); }
.yp-p100 { --yp-to: 100; } .yp-p80 { --yp-to: 80; } .yp-p25 { --yp-to: 25; } .yp-p0 { --yp-to: 0; }
.yp-p100 .yp-ring-dial { box-shadow: 0 0 20px -6px rgba(240, 180, 106, .7); }
.yp-steps { list-style: none; padding: 0; display: grid; gap: 7px; }
.yp-steps li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-2);
}
.yp-steps time { font-size: .68rem; color: var(--text-3); }
.yp-steps .is-done { color: var(--text); }
.yp-steps .is-done .m-tick { background: var(--amber); border-color: var(--amber); color: var(--ink); box-shadow: 0 0 12px rgba(240, 180, 106, .5); }
.yp-steps .is-active { color: var(--text); border-color: rgba(240, 180, 106, .35); background: rgba(240, 180, 106, .07); }
.yp-steps .is-active .m-tick { border-color: var(--amber); border-right-color: transparent; }

/* render 2: photo studio before / after */
.yp-compare { --yp-cut: 46%; position: relative; border-radius: 14px; overflow: hidden; background: var(--night-3); }
.yp-compare img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.yp-before { filter: saturate(.3) brightness(.78) contrast(.86) hue-rotate(-8deg); }
.yp-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--yp-cut)); }
.yp-after img { height: 100%; filter: saturate(1.15) contrast(1.06); }
.yp-after::after { /* a little warm twilight in the edit */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 54, 120, .22), transparent 45%, rgba(240, 180, 106, .16));
  mix-blend-mode: soft-light;
}
.yp-handle {
  position: absolute;
  inset: 0;
  transform: translateX(var(--yp-cut));
  pointer-events: none;
}
.yp-handle::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 16px rgba(255, 255, 255, .6); }
.yp-handle i {
  position: absolute;
  left: -15px; top: 50%;
  width: 30px; height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.yp-handle i::before, .yp-handle i::after { /* the ‹ › arrows */
  content: "";
  position: absolute;
  top: 11px;
  width: 6px; height: 6px;
  border: solid #1a2134;
  border-width: 0 0 2px 2px;
}
.yp-handle i::before { left: 7px; transform: rotate(45deg); }
.yp-handle i::after { right: 7px; transform: rotate(-135deg); }
.yp-lab { position: absolute; top: 10px; background: rgba(7, 10, 18, .7); }
.yp-lab--before { left: 10px; }
.yp-lab--after { right: 10px; }
.yp-presets { display: flex; flex-wrap: wrap; gap: 7px; }
.yp-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--pill);
  background: rgba(7, 10, 18, .4);
  color: var(--text-2);
  font-size: .74rem;
}
.yp-prompt > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yp-go {
  flex: none;
  padding: 7px 14px;
  border-radius: var(--pill);
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  color: var(--ink);
  font-weight: 600;
  font-size: .72rem;
}

/* render 3: listing website */
.yp-site-hero { position: relative; }
.yp-site-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night-3); }
.yp-site-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 9, 17, .78)); }
.yp-site-title { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; }
.yp-site-title p { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.05; letter-spacing: -0.02em; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.yp-site-title span { display: block; margin-top: 6px; font-size: .74rem; color: rgba(243, 241, 236, .85); }
.yp-site-stats { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 1px; background: var(--glass-line); }
.yp-site-stats > div { padding: 14px 16px; background: rgba(13, 18, 32, .97); min-width: 0; }
.yp-site-stats b { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.yp-site-stats span { font-size: .68rem; color: var(--text-2); }
.yp-spark { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-bottom: 2px; }
.yp-spark i { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--amber-2), rgba(240, 180, 106, .35)); transform-origin: bottom; }
.yp-spark i:last-child { box-shadow: 0 0 12px rgba(240, 180, 106, .6); }
.yp-spark .h-30 { height: 30%; } .yp-spark .h-40 { height: 40%; } .yp-spark .h-45 { height: 45%; }
.yp-spark .h-55 { height: 55%; } .yp-spark .h-60 { height: 60%; } .yp-spark .h-80 { height: 80%; }
.yp-spark .h-100 { height: 100%; }

/* render 4: seller update */
.yp-update-hero { position: relative; border-radius: 14px; overflow: hidden; }
.yp-update-hero img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; background: var(--night-3); }
.yp-update-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 9, 17, .8), rgba(6, 9, 17, .15) 70%); }
.yp-update-hero p { position: absolute; z-index: 1; left: 16px; top: 50%; transform: translateY(-50%); font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; line-height: 1.1; color: var(--amber-2); }
.yp-update-hero small { display: block; margin-bottom: 4px; font-family: var(--font-sans); font-style: normal; font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.yp-k { font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); margin-bottom: -6px; }
.yp-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.yp-glance div { padding: 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .035); min-width: 0; }
.yp-glance b { display: block; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.yp-glance span { font-size: .68rem; color: var(--text-2); }
.yp-plan { list-style: none; padding: 0; display: grid; gap: 7px; }
.yp-plan li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.yp-plan .icon { width: 15px; height: 15px; color: var(--ice); }

@media (max-width: 479px) {
  .yp-body { padding: 12px; gap: 12px; }
  .yp-listing { grid-template-columns: 92px 1fr; }
  .yp-rings { gap: 6px; }
  .yp-ring { padding: 10px 4px 8px; }
  .yp-ring-dial { width: 44px; height: 44px; }
  .yp-ring-dial b { font-size: .64rem; }
  .yp-steps li:nth-child(n + 5) { display: none; }
  .yp-presets .m-chip:nth-child(4) { display: none; }
  .yp-site-stats { grid-template-columns: 1fr 1fr; }
  .yp-spark-cell { grid-column: 1 / -1; }
  .yp-glance b { font-size: 1.1rem; }
}

.yp-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  margin-top: clamp(48px, 6vw, 72px);
}

/* ==========================================================================
   Tabs (1024 px and up, set by home-portal.js)
   ========================================================================== */
@media (min-width: 1024px) {
  .yp.is-tabs {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: center;
  }
  .yp.is-tabs .yp-list { display: grid; gap: 8px; }
  .yp.is-tabs .yp-stage {
    display: grid;
    perspective: 1800px;
    padding-block: 28px;
    isolation: isolate;
  }
  /* a soft light behind the screen */
  .yp.is-tabs .yp-stage::before {
    content: "";
    grid-area: 1 / 1;
    z-index: -1;
    margin: -12% -8%;
    background:
      radial-gradient(45% 45% at 62% 40%, rgba(240, 180, 106, .14), transparent 70%),
      radial-gradient(40% 40% at 30% 70%, rgba(154, 216, 255, .1), transparent 70%);
    pointer-events: none;
  }

  /* list rows: quiet until chosen, then a pane of liquid glass */
  .yp.is-tabs .yp-copy {
    margin: 0;
    max-width: none;
    padding: 18px 20px;
    border: 1px solid transparent;
    border-radius: 24px;
    transition: background-color .5s var(--ease-out), border-color .5s, box-shadow .5s var(--ease-out);
  }
  .yp.is-tabs .yp-copy.is-active {
    border-color: rgba(255, 255, 255, .08);
    background: var(--lg-fill);
    box-shadow: var(--lg-shadow);
  }
  .yp.is-tabs .yp-tab { cursor: pointer; border-radius: 14px; }
  .yp.is-tabs .yp-tab:focus-visible { outline-offset: 6px; }
  .yp.is-tabs .yp-copy:not(.is-active) .yp-name { color: var(--text-2); transition: color .3s; }
  .yp.is-tabs .yp-copy:not(.is-active) .yp-tab:hover .yp-name { color: var(--text); }
  .yp.is-tabs .yp-copy:not(.is-active) .yp-icon { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: var(--text-2); box-shadow: none; }
  .yp.is-tabs .yp-copy:not(.is-active) .yp-tab:hover .yp-icon { color: var(--amber-2); border-color: rgba(240, 180, 106, .32); }
  .yp.is-tabs .yp-copy.is-active .yp-icon { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 22px -6px rgba(240, 180, 106, .6); }

  /* the detail folds open under the chosen row */
  .yp.is-tabs .yp-more {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .6s var(--ease-out), opacity .35s;
  }
  .yp.is-tabs .yp-more-in { min-height: 0; overflow: hidden; }
  .yp.is-tabs .yp-copy.is-active .yp-more { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .6s var(--ease-out), opacity .5s .15s; }

  /* how long until it moves on: a thin line at the foot of the chosen row */
  .yp.is-tabs.is-auto .yp-copy.is-active .yp-progress {
    display: block;
    position: absolute;
    left: 24px; right: 24px; bottom: 9px;
    height: 2px;
    border-radius: var(--pill);
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
  }
  .yp-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--amber), var(--amber-2));
    transform: scaleX(0);
    transform-origin: left;
  }
  .yp.is-tabs.is-auto .yp-copy.is-active .yp-progress i { animation: yp-dwell 8s linear forwards; }
  .yp.is-tabs.is-auto.is-paused .yp-copy.is-active .yp-progress i { animation-play-state: paused; }

  /* the renders share one place; the chosen one turns in, tilted like a screen on a desk */
  .yp.is-tabs .yp-render {
    grid-area: 1 / 1;
    align-self: center;
    width: 100%;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(48px, 10px, -80px) rotateY(-16deg) rotateX(4deg);
    transition: opacity .5s var(--ease-out), transform .9s var(--ease-out), visibility 0s .9s;
  }
  .yp.is-tabs .yp-render.is-active {
    opacity: 1;
    visibility: visible;
    transform: rotateY(var(--yp-ry, -7deg)) rotateX(var(--yp-rx, 3deg));
    transition: opacity .6s .1s var(--ease-out), transform .9s var(--ease-out), visibility 0s;
  }
  .yp.is-tabs .yp-render.is-leaving { transform: translate3d(-36px, -6px, -60px) rotateY(6deg) rotateX(2deg); }
  .yp.is-tabs .yp-window { min-height: 452px; }
  .yp.is-tabs .yp-render--site .yp-window, .yp.is-tabs .yp-render--update .yp-window { display: flex; flex-direction: column; }
  .yp.is-tabs .yp-bar { flex: none; }
  .yp.is-tabs .yp-render--site .yp-body { flex: 1; display: flex; flex-direction: column; }
  .yp.is-tabs .yp-render--site .yp-site-hero { flex: 1; min-height: 300px; overflow: hidden; }
  .yp.is-tabs .yp-render--site .yp-site-hero img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .yp.is-tabs { gap: 40px; }
  .yp.is-tabs .yp-copy { padding: 16px; }
  .yp-chip--a, .yp-chip--d { right: 8px; }
  .yp-chip--b, .yp-chip--c { left: 8px; }
}

@keyframes yp-dwell { to { transform: scaleX(1); } }
.yp.is-switching .yp-copy, .yp.is-switching .yp-more, .yp.is-switching .yp-render { transition: none !important; }

/* ==========================================================================
   Motion inside the renders (only with JS, only when motion is welcome).
   .is-live is set while a render is in view (and chosen, in tabs); without
   JS or with reduced motion everything simply shows in its finished state.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* stacked: each render rises into view */
  .yp.is-ready:not(.is-tabs) .yp-render { transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out); }
  .yp.is-ready:not(.is-tabs) .yp-render:not(.was-live) { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(8px); }

  /* chips drift */
  .yp.is-ready .yp-render.is-live .yp-chip { animation: yp-chip-in .8s .5s var(--ease-out) both, yp-float 6s 1.3s ease-in-out infinite alternate; }

  /* 1: rings fill, steps tick in */
  .yp.is-ready .yp-render--launch:not(.is-live) .yp-ring-dial { --yp-p: 0; }
  .yp.is-ready .yp-render--launch .yp-ring-dial { transition: --yp-p 1.4s var(--ease-out); }
  .yp.is-ready .yp-render--launch .yp-ring:nth-child(2) .yp-ring-dial { transition-delay: .12s; }
  .yp.is-ready .yp-render--launch .yp-ring:nth-child(3) .yp-ring-dial { transition-delay: .24s; }
  .yp.is-ready .yp-render--launch.is-live .yp-steps li { animation: yp-row-in .6s var(--ease-out) both; }
  .yp.is-ready .yp-render--launch.is-live .yp-steps li:nth-child(2) { animation-delay: .1s; }
  .yp.is-ready .yp-render--launch.is-live .yp-steps li:nth-child(3) { animation-delay: .2s; }
  .yp.is-ready .yp-render--launch.is-live .yp-steps li:nth-child(4) { animation-delay: .3s; }
  .yp.is-ready .yp-render--launch.is-live .yp-steps li:nth-child(5) { animation-delay: .4s; }
  .yp.is-ready .yp-render--launch.is-live .yp-steps .is-done .m-tick { animation: yp-tick .5s var(--ease-out) both; }
  .yp.is-ready .yp-render--launch.is-live .yp-steps li:nth-child(1) .m-tick { animation-delay: .45s; }
  .yp.is-ready .yp-render--launch.is-live .yp-steps li:nth-child(2) .m-tick { animation-delay: .6s; }
  .yp.is-ready .yp-render--launch.is-live .yp-steps li:nth-child(3) .m-tick { animation-delay: .75s; }
  .yp.is-ready .yp-render--launch.is-live .yp-steps .is-active .m-tick { animation: spin 1.6s linear infinite; }

  /* 2: the before / after line sweeps back and forth */
  .yp.is-ready .yp-render--photo.is-live .yp-compare { animation: yp-wipe 7s .3s ease-in-out infinite; }

  /* 3: the week's visits grow, day by day */
  .yp.is-ready .yp-render--site.is-live .yp-spark i { animation: yp-grow .9s var(--ease-out) both; }
  .yp.is-ready .yp-render--site.is-live .yp-spark i:nth-child(2) { animation-delay: .07s; }
  .yp.is-ready .yp-render--site.is-live .yp-spark i:nth-child(3) { animation-delay: .14s; }
  .yp.is-ready .yp-render--site.is-live .yp-spark i:nth-child(4) { animation-delay: .21s; }
  .yp.is-ready .yp-render--site.is-live .yp-spark i:nth-child(5) { animation-delay: .28s; }
  .yp.is-ready .yp-render--site.is-live .yp-spark i:nth-child(6) { animation-delay: .35s; }
  .yp.is-ready .yp-render--site.is-live .yp-spark i:nth-child(7) { animation-delay: .42s; }
  .yp.is-ready .yp-render--site.is-live .yp-site-hero img { animation: yp-drift 12s ease-out both; }

  /* 4: the week fills in */
  .yp.is-ready .yp-render--update.is-live .yp-glance div,
  .yp.is-ready .yp-render--update.is-live .yp-plan li { animation: yp-row-in .6s var(--ease-out) both; }
  .yp.is-ready .yp-render--update.is-live .yp-glance div:nth-child(2) { animation-delay: .1s; }
  .yp.is-ready .yp-render--update.is-live .yp-glance div:nth-child(3) { animation-delay: .2s; }
  .yp.is-ready .yp-render--update.is-live .yp-plan li:nth-child(1) { animation-delay: .3s; }
  .yp.is-ready .yp-render--update.is-live .yp-plan li:nth-child(2) { animation-delay: .4s; }
  .yp.is-ready .yp-render--update.is-live .yp-chip { animation-delay: 1.1s, 1.9s; }
}

@keyframes yp-chip-in { from { opacity: 0; transform: translateY(12px) scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes yp-float { from { translate: 0 0; } to { translate: 0 -8px; } }
@keyframes yp-row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes yp-tick { 0% { transform: scale(.4); background: transparent; border-color: rgba(255, 255, 255, .25); color: transparent; box-shadow: none; } 60% { transform: scale(1.15); } 100% { transform: none; } }
@keyframes yp-wipe { 0%, 100% { --yp-cut: 82%; } 40%, 55% { --yp-cut: 22%; } }
@keyframes yp-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes yp-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
